Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | DAX (59 exercises) |
Topic ==> | The CALCULATE function (16 exercises) |
Level ==> | Average difficulty |
Subject ==> | Power BI training |
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.
Open the Music Tours - All Selected.pbix file in the folder shown above. You'll find three tables showing a count of albums, and a slicer allowing you to filter by the artist.
Each table groups the data by a different field.
The aim is to add a measure to each table which will show the percentage that each group contributes to the total for the table. To do this, you'll need to work out the count of albums, ignoring any filters applied by fields in the table, but honouring any filters applied from outside the table.
An example of the results we want to see.
One way to achieve this would be to write a separate measure for each table, removing the filter from the specific field used by each table. Here's what that might look like for a measure you could add to the table which is grouping by Genre:
You can use the REMOVEFILTERS function to remove a filter from a specific field.
Create three measures like the one shown above which you can add to the relevant table visuals.
Rather than removing filters from specific fields, you can use the ALLSELECTED function to remove any filters applied by the visual that you place the measure in. Create a single measure using a combination of the DIVIDE, CALCULATE and ALLSELECTED functions which you can use to replace the previous three measures you created.
Test that the measure works by selecting different artists from the slicer.
No matter which artist you select, the total should always be 100%.
Save and close the report.
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.