DAX | Calendars and dates exercise | Compare expense payment dates with dates incurred

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 ==> Calendars and dates  (5 exercises)
Level ==> Average difficulty
Subject ==> Power BI training
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.

Import both tables from the above workbook.  Power BI Desktop will join them together by the wrong field!

Wrong join

The id field just numbers the rows in each table - it's unfortunate that it happens to have the same name and data type in each table.

Delete this relationship, then import another copy of the calendar table, rename both tables and create relationships to get:

Correct relationships

One relationship should use the date an expense was incurred, the other the date an expense was paid.

Use this model to show that a few expenses were incurred in one year and paid in the next:

Matrix showing errors

You could apply a conditional formatting rule to highlight numbers less than 100, as here.

Save this file as Small fry, 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 1 thread Add post
08 Oct 20 at 11:22

Is the attached answer is belong to this exercise ? I see 4 files and it has completely different data 

08 Oct 20 at 17:07

Thanks for pointing this out - corrected.