POWER BI EXERCISES▼
POWER BI EXERCISES▼
- Basic reports (10)
- Data sources (2)
- Query editor (8)
- Multiple tables (1)
- Filtering data (9)
- Drill-through filtering (1)
- Bookmarks (4)
- Charts (10)
- Other types of visualisation (1)
- Overview of maps (6)
- Calculated columns (7)
- Introduction to DAX (3)
- Creating measures in DAX (1)
- Calendars (2)
- Date functions (2)
- Roles and security (1)
- Advanced data models (4)
- Drill-through and bookmarks (3)
- Custom visuals (3)
- Parameters (5)
- Quick measures (3)
- Report themes (2)
- Power BI mobile (1)
- Power BI Templates (1)
- Tooltips (2)
Power BI | Advanced data models exercise | Change data source using M
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!
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 pbix file called Outdated Movies from the above folder, and have a look at the table visual it contains (already created in report view):
The top 10 movies according to Rotten Tomatoes as of 2016.
What we want to do is update this list to show the current top 10 films on the website. The easiest way to do this is to point the M language instructions at a different data source. First connect to the Rotten Tomatoes website:
Since this is a website you may find the answer needs a refresh! As of writing the table we want is Table 2.
Once you have the data, go to the original top 100 table and from the Home tab choose Advanced editor, sadly the old connection won't work but we still get the code:
Copy all the steps from 'Reordered columns' down. We don't want a CSV file - instead we want our web connection!
Open up the Advanced editor for your web connection to the Rotten Tomatoes website:
Paste your M steps in under the already generated code. Remember to add a comma in front of the first line!
Refresh your connection and admire your newly updated list. Sadly there is no short-cut for changing the report visual - you will need to recreate this:
It is also worth ordering the Title (Rank) column using the Rank column.
Optionally save this as Out with the old, in with the new and then close it down.