POWER BI EXERCISES▼
POWER BI EXERCISES▼
- Basic reports (10)
- Data sources (2)
- Query editor (8)
- Filtering data (9)
- Drill-through (1)
- Charts (10)
- Matrices (1)
- Basic maps (6)
- Calculated columns (8)
- Roles and security (1)
- Drill-through and bookmarks (3)
- Report themes (2)
- Power BI mobile (1)
- Tooltips (2)
- Bookmarks (4)
- Quick measures (3)
- Custom visuals (3)
- Advanced data sources (4)
- Parameters (5)
- Power BI Templates (1)
Power BI | Advanced data sources 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 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.