Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
551 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | PowerPivot (72 exercises) |
Topic ==> | The CALCULATE function (15 exercises) |
Level ==> | Average difficulty |
Subject ==> | Power BI training |
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.
This will generate the database that you'll need to use in order to do this exercise (note that the database and script are only to be used for exercises published on this website, and may not be reused or distributed in any form without the prior written permission of Wise Owl).
Create a new workbook, and import the following tables into a PowerPivot data model:
Give these five tables friendly names, as shown.
Create a measure called Northern Powerhouse in the Purchase table to show total sales in the following regions:
Region | Id number |
---|---|
North | 4 |
North-West | 5 |
Yorkshire & Humberside | 9 |
As a reminder, the syntax of the CALCULATE function is this:
Make your life easier by using a criteria based on the region id, not name. You'll need to use the two pipe characters (||) for "or".
You should now be able to create the following pivot table, showing one explicit measure and one implicit one:
The first few products in alphabetical order.
Now create another measure called Northern share in the Purchase table, which divides the Northern Powerhouse measure by the total quantity sold to get this:
Sales in ascending order of Northern percentage share.
Save this workbook as Come back George, then close it down.
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.