POWER BI EXERCISES▼
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.
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!
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:
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:
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.