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
537 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.
If you've just created a file called Clever PowerPivot, you should be able to use this as the basis for this exercise too. Otherwise, if you haven't already done so run the script in the above folder to generate the MAM database (not for commercial use or copying).
If necessary create PosMonth and PosYear calculated columns in the Pos table to get a data model looking something like this:
The aim of this exercise is to create the Right and Wrong measures, so don't worry that you don't have these yet!
Create a measure using CALCULATE to show the total amount of transactions, but excluding those in month 1:
Something is clearly going wrong!
The problem is that the function is removing any filter context for the PosMonth column, and then adding a new one.
Create another version of the same function which keeps the filter context (using VALUES), but then adds an additional filter to it to get the total amount of transactions excluding month 1:
A better answer!
Save this as No one likes January anyway, 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 2025. All Rights Reserved.