WISE OWL EXERCISES
POWER BI EXERCISES
DAX | The VALUES function exercise | Use a measure to show a dynamic report title in Power BI
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
You can learn how to do this exercise if you attend the course listed below!
You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
Open the Power BI file in the above folder, which should contain this report page:
Choose an area at the top, and you'll see a breakdown of voting figures in the 2016 Brexit referendum (this is genuine data).
The title is based on a measure called Title - your task is to show the area chosen!
Edit the formula for the Title measure so that it displays the name of the area chosen, or All areas if you're not filtering by the Voting[Area] column:
Use the ISFILTERED function to see if you're filtering by the area, and the VALUES function to pick out the area name.
If you have time, change the properties of your slicer to allow a user to select multiple areas and all areas:
Choose these two options for your slicer.
Improve your Title measure so that it uses the CONCATENATEX function to show a list of areas chosen if a user ticks more than one:
An example: this person has ticked 3 areas, so their names are listed in the title card.
Save this as Happy memories, and close the file down.