Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello All,
I am creating the summarized table with the following measure:
Summarised students =
CALCULATETABLE(
SUMMARIZE(
Students,
Students[StudentName],
"TotalScore",sum(Students[Score]))
)
After creating this table, I am trying to Rank the students based on their scores in descending order through the following Column/ Measure:
StudentRank = RANKX(ALL(Students[StudentName]),CALCULATE(sum(Students[TotalScore])),,DESC,Dense)
StudentName | TotalScore | Rank |
| S1 | 90 | 1 |
| S2 | 98 | 1 |
| S3 | 96 | 1 |
| S4 | 91 | 1 |
| S5 | 99 | 1 |
I want to rank them correctly and then select Top 3 from the above list.
Thank you so much for your help!
Solved! Go to Solution.
@Marico , You do not need summarize table for that , or create measure on that and use with columns of that table
StudentRank = RANKX(ALL('Summarised students'[StudentName]),CALCULATE(sum('Summarised students'[TotalScore])),,DESC,Dense)
For TOPN
AverageX(keepfilters(topn(3, all('Summarised students'[StudentName],CALCULATE(sum('Summarised students'[TotalScore])), desc)),CALCULATE(sum('Summarised students'[TotalScore])) )
@Marico , You do not need summarize table for that , or create measure on that and use with columns of that table
StudentRank = RANKX(ALL('Summarised students'[StudentName]),CALCULATE(sum('Summarised students'[TotalScore])),,DESC,Dense)
For TOPN
AverageX(keepfilters(topn(3, all('Summarised students'[StudentName],CALCULATE(sum('Summarised students'[TotalScore])), desc)),CALCULATE(sum('Summarised students'[TotalScore])) )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 46 |