Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I want a chart with the top 10 items shown.
In my legend I have the treinnumbers that were selected.
Value: Count of train numbers.
I created a measure
Solved! Go to Solution.
Hi @stijn007
I notice this line
You write countrows(allselected(table[column]))
Please correct it by the formula below
countrows(allselected(table))
Final Rank =
RANKX (
ALLSELECTED('Table'),
RANKX ( ALLSELECTED('Table'),CALCULATE(COUNT('Table'[number])),,DESC,Dense)
+ DIVIDE (
RANKX (ALLSELECTED('Table'),CALCULATE(MAX('Table'[number])),,ASC,Dense),
COUNTROWS(ALLSELECTED('Table'))
),,ASC,Dense
)
When I tried, the ranking is different when I order in the column "Final Rank"
Somewhere it has to order in column Count.
Hi @stijn007
How do you create that incorrect measure?
Could you show me some screenshots about your columns and measure?
Do you want the final rank to be a column?
Best Regards
Maggie
Hi @stijn007
Hi @stijn007
I notice this line
You write countrows(allselected(table[column]))
Please correct it by the formula below
countrows(allselected(table))
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 |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 43 |