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 ()
- 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 | 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.
Software ==> | DAX (28 exercises) |
Version ==> | |
Topic ==> | Understanding EARLIER (2 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. 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.