- Access exercises (91)
- C# exercises (79)
- Excel exercises (278)
- Power Apps exercises (13)
- Power Automate exercises (18)
- Power BI exercises (139)
- 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 | The VALUES function exercise | Allow a user to choose the units when displaying film finances
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 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 - you should see this table:
Average box office takings, budget and profit by film certificate.
Use the following menu option to import the Units worksheet from the above folder:
Choose to import data from Excel.
Create a slicer allowing you to choose which unit you want to use:
A basic slicer - feel free to pimp yours, should you so wish.
Use the HASONEVALUE function (among others!) to create 3 measures showing the average box office takings, budget and profit for the unit chosen:
Here we've chosen $m as our unit, so all of the figures are divided by 1000000. If you don't choose a unit in your slicer your measures should all return blank, since you don't know what divisor to use.
Still got time? Add a measure called Title (and a card to display it) to show different titles according to whether or not you have chosen a unit:
|Unit chosen||No unit chosen|
Save this file as Whew, then close it down.