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!

Software ==> DAX  (21 exercises)
Version ==>
Topic ==> Understanding EARLIER  (2 exercises)
Level ==> Average difficulty
Course ==> DAX
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.  Sadly, the running total column is blank:

Cumulative Oscars

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:

Cumulative Oscars measure

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:

Sorted Oscars

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.

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