WISE OWL EXERCISES
POWER BI EXERCISES
DAX | Understanding EARLIER exercise | Use the EARLIER function to create a running Oscars count
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. Sadly, the running total column is blank:
Your task is to get the column to show what it says it should!
Combine the FILTER and EARLIER functions to get the Cumulative Oscars column to be correct:
The first few rows showing the cumulative total of Oscars won.
The table makes much more sense if you sort it in release date order:
Better - you can infer from this that All Quiet on the Western Front won 2 Oscars.
Now create another calculated column called Cumulative Oscars using variables to do the same thing, but this time storing each film's release date in a variable first (and thus avoiding using the EARLIER function).
Save this file as Oscar inflation, then close it down.