POWER BI EXERCISES▼
- PowerPivot data models (7)
- Pivot tables using PowerPivot (2)
- Using Excel tables (3)
- Using other data sources (1)
- Transforming data (Power Query) (7)
- Calculated columns (7)
- Measures (2)
- The CALCULATE function (15)
- More advanced DAX functions (5)
- Calendars (1)
- Date functions (10)
- Hierarchies (2)
- KPIs (5)
- Power View (4)
- Power BI Desktop overview (3)
- Power BI Desktop maps (1)
PowerPivot | Pivot tables using PowerPivot exercise | Create a pivot table, use Quick Explore and use slicers
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 on the relevant Wise Owl classroom training course (sadly for the moment only in the UK).
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.
If you haven't already done so, run the SQL script in the above folder in SQL Server Management Studio to generate a database (not for commercial use or copying) called MAM.
Import from this database the following tables:
The tables to import, so we can look at regions, towns, etc.
If you haven't already chosen only to import the columns you need, delete columns from your data model and hide others from client tools to get this pivot table field list:
Your data model should only expose these fields.
In PowerPivot Diagram View, you should have only 17 columns included, and many of these will be hidden from client tools.
Now create this simple pivot table:
A pivot table showing the total quantity of items sold, by region.
The figure of 1984 for London looks suspiciously Orwellian. Use Quick Explore (right-click on the cell for the menu option) to drill down to show that this is made up of these figures:
The first few towns for this region.
Repeat this process to show:
- the 773 figure for London town broken down by centre; then
- the 122 figure for Leyton Mills broken down by store.
You should now see this:
You can use CTRL + Z to undo what you've done until you're back at the original pivot table.
Impressive stuff! Now add a slicer to your pivot table, and use it to show only towns for regions in the East and/or West Midlands:
You don't have to apply the hideous style shown here, but you should make your slicer have 3 columns.
Finally, create another pivot table showing the average price of transactions by shopping centre, and get this to be controlled by the slicer shown above also:
Here's what this pivot table should show when you have the same regions (East and West Midlands) selected on the slicer on the other worksheet.
Save this workbook as Best thing since slicer bread, and close it down.