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
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

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:

Slicer and doughnut chart

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:

Single area chosen

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:

Slicer options

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:

Multiple areas

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.

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post