Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I am doing an improv test at a company meeting and the CEO wants to display the top score and the owner of the top score,
i would like to rank first by score and if a tie then by shortest time to take the quiz
Table Name
Table1
Column names
total points
name
Time to take
Hi @abehrmann
The following will yield a table with the top participant(s) (plural if there were more than one with same top score and time). I've named the table Results instead of Table1
TOPN ( 1; Results; Results[Points]; DESC; Results[Time]; ASC )
If you want a measure that displays the name see below. Note that this measure will display the warning if there were more than one participant with same top score and time:
Measure = CALCULATE ( SELECTEDVALUE ( Results[Name]; "More than one candidate" ); TOPN ( 1; Results; Results[Points]; DESC; Results[Time]; ASC ) )
Can you explain to do do the top suggestion?
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |