March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have a dataset of student performance data with test results, student id and various demographic details. I have created a 'profile' page for each student containing demographic data as well as the test result data - this is obtained using the drill-through option. What I'm interested in showing is a gauge with the student's test result compared to the maximum mark achieved by any student in the dataset (this would be the max value of the gauge). To do this I created a measure as follows:
The problem is that every time I open the student profile page using the drill-through method, the maximum value is always the same as the student's test score (so the gauge is always full). Is my measure defined incorrectly, or is there something else that I am not doing right?
Thank you,
Solved! Go to Solution.
hi @Anonymous
You may need to use this measure
Maximum Student Score = CALCULATE(MAX('Student Data'[FINAL_MARKS]), ALL('Student Data'))
or
Maximum Student Score = CALCULATE(MAX('Student Data'[FINAL_MARKS]), ALLEXCEPT('Student Data', 'Student Data'[ID]))
Regards,
Lin
hi @Anonymous
You may need to use this measure
Maximum Student Score = CALCULATE(MAX('Student Data'[FINAL_MARKS]), ALL('Student Data'))
or
Maximum Student Score = CALCULATE(MAX('Student Data'[FINAL_MARKS]), ALLEXCEPT('Student Data', 'Student Data'[ID]))
Regards,
Lin
Try like
Maximum Student Score = CALCULATE(MAX('Student Data'[FINAL_MARKS]), ALL('Student Data'))
or
Maximum Student Score = MAXX(ALL('Student Data'),'Student Data'[FINAL_MARKS])
User | Count |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |