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
547 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 ==> | DAX (59 exercises) |
Topic ==> | The CALCULATE function (16 exercises) |
Level ==> | Harder than average |
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.
Open the Power BI file in the above folder, and create a measure (not a calculated column - that would be too easy) to rank each series by its viewing figures to get:
The ranking more or less matches the series number, but there's a blip where GBBO went over to Channel 4.
This exercise may look deceptively easy, but it's probably the hardest one in the set!
Save this as Rank expression, then close it down.
You can find other training resources for the subject of this exercise here:
From: | Stefan |
When: | 29 Oct 24 at 13:17 |
It could be also implemented like this probably? =>
Ranking Other Option =
var tabSeries =
all(
Series[Series]
)
var vViewers = SELECTEDVALUE(Series[Viewers (m)])
return
/*
CONCATENATEX(
tabSeries
, [Series] & " - " & var mySeries = [Series] return calculate(sum(Series[Viewers (m)]), REMOVEFILTERS(), Series[Series] = mySeries)
, UNICHAR(10)
, var mySeries = [Series] return calculate(sum(Series[Viewers (m)]), REMOVEFILTERS(), Series[Series] = mySeries)
, ASC
)
*/
rankx(
tabSeries
, var mySeries = [Series] return calculate(sum(Series[Viewers (m)]), REMOVEFILTERS(), Series[Series] = mySeries)
, vViewers
, ASC
)
From: | richardh87 |
When: | 15 Sep 23 at 14:13 |
Hi, I'm confused as to why the lowest viewing figure is ranked 1st instead of 8th, etc. Shouldn't it be the other way around?
From: | Andy B |
When: | 18 Sep 23 at 19:47 |
I suspect you're probably right! Feel free to change the sort order from ascending to descending when doing the exercise.
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.