Power BI | Advanced data sources exercise | Unpivot data for use within a data model

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 ==> Power BI  (111 exercises)
Version ==> Latest update
Topic ==> Advanced data sources  (4 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.

One of your colleagues has created an excellent pivot table within Excel. While it may look excellent there, however, it causes problems within the data model:

Power BI Unpivot Query editor

The first half of the year certainly seems to be having a promising start. Wonder if the second half is as good?

Bring this data into Query Editor and unpivot it so that it can be presented within report view. Create a line chart based on these results:

Messy unsorted line chart

Yikes! We can't tell anything from this due to the weird month order.

Import the month numbers table from the Excel file in the above folder. Join this to your pivot table via the month names (using the month number to sort the  month names):

Sorting months by number

A handy feature which makes our months appear in a more logical order.

Recreate the line chart using the sorted month column from the other table, admire your sorted months:

Power BI Unpivot

Ouch. Guess the summer holidays didn't help with focussing the mind!


Optionally save this as More grades, more green and 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