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
549 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 ==> | Power BI (160 exercises) |
Topic ==> | Calculated columns (12 exercises) |
Level ==> | Relatively easy |
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.
Sadly, your company has appointed a new FD who insists that you should report in thirds, rather than quarters. The thirds should be named after his 3 pet cats:
Third | Covers |
---|---|
Truffles | January, February, March and April |
Sprout | May, June, July and August |
Spot | September, October, November and December |
Start by importing all of the tables from the above database into a new model. You'll need to create a relationship between the Calendar table and the Purchase table via the PurchaseDate field:
Link these two tables as shown.
Create a new calculated column in the calendar table using this logic:
Use this to show a tree diagram proving that most sales are made in Truffles:
A tree diagram with category labels displayed.
Time for a new finance director? Save this as Doing things by thirds, then close it down.
You can find other training resources for the subject of this exercise here:
From: | irohunk |
When: | 14 May 21 at 15:59 |
Hi,
I followed the instructions and made a calculated column. While creating the tree diagram, I am getting an additional blank value. I checked all the table values, however, there are no balnk values in it.
I am trying to paste the screenshot here but it is not allowing me to paste.
Calculated field formula:
ByThirds = SWITCH(True, [MonthNumber] < 5, "Truffles", [MonthNumber] < 9, "Sprout", "Spot").
I have added this in this calendar table. The values I am getting are:
Sprout - 22558
Truffles - 20763
Spot - 19611
(Blank) - 11483
Please help in resolving this issue.
Regards,
iRK
From: | Andy B |
When: | 14 May 21 at 17:09 |
We are planning on adding the facility to add images to posts at some stage soon ...
You've done everything right apart from one thing - when you created the relationship between the Purchase and Calendar tables, I suspect you linked them by the payment date not the purchase date. Because some purchases have got null values for the payment date (because they haven't yet been paid), you get nulls in the results.
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.