EXERCISE TOPIC▼
- Access exercises (91)
- C# exercises (79)
- Excel exercises (278)
- Power Apps exercises (13)
- Power Automate exercises (18)
- Power BI exercises (139)
- Power Platform exercises (157)
- Python exercises (28)
- Report Builder exercises (141)
- SQL exercises (198)
- SSAS exercises (51)
- SSIS exercises (46)
- SSRS exercises (99)
- VBA exercises (85)
- Visual Basic exercises (46)
POWER BI EXERCISES▼
DAX 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.
Software ==> | DAX (28 exercises) |
Version ==> | |
Topic ==> | The VALUES function (4 exercises) |
Level ==> | Average difficulty |
Subject ==> | Power BI training |
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 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.