POWER BI EXERCISES▼
POWER BI EXERCISES▼
- Basic reports (10)
- Data sources (2)
- Query editor (8)
- Filtering data (9)
- Drill-through (1)
- Bookmarks (4)
- Charts (10)
- Matrices (1)
- Basic 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 | Query editor exercise | Import the latest FTSE stock market prices using Query Editor
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.
Create a new Power BI report.
Load the data from the workbook in the above folder - you should see something like this:
The initial list of shares, which is begging to be tidied up!
In Query Editor, carry out the following transforms:
- Choose to Use First Row as Headers (this may not always be necessary).
- Remove all but the first, second and fifth columns.
- Rename the remaining columns as shown below.
You should now be looking at something like this:
The remaining table of data.
Your prices are left-aligned, which suggests that Power BI is treating them as text. Change the data types of the last two columns so that they are (decimal) numbers:
Better - now we can do arithmetic on these columns ...
Choose to add a new column:
Choose to add a column using this icon.
Create a column which subtracts the last closing price from the current one, rename it and sort by it to get:
It's been a good day today for holders of shares in NMC Health PLC.
Save this data back into Power BI proper, and use it to create a simple table:
Totals would be meaningless in this context, so you should choose not to display them.
Save this report as Equity, then close it down.