This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Can you please help with below?
This is my table
Below is the function used
I am getting 1 for all rows,I need it to show over all rank of the table
Thanks
Naresh
Solved! Go to Solution.
Hi @nknareshkumar21 ,
To resolve this, you can use the RANKX function inside a calculated column instead. This will calculate the rank across the entire table.
1.Go to Modeling > New Column in Power BI Desktop.
Use the following DAX formula:
Rank =
RANKX(
ALL('Table (2)'),
'Table (2)'[Revenue],
,
DESC,
DENSE
)
2. Replace "Your Table Name" with the actual name of your table.
3. Add this Rank column to your visual alongside Country, Product, and Revenue.
This will correctly assign a unique overall rank to each row based on Revenue.
Result:
If my response solved your query, please mark it as the Accepted solution to help others find it easily.
And if my answer was helpful, I'd really appreciate a 'Kudos'.
Hi @nknareshkumar21 ,
Has your issue been resolved, or do you require any further information? Your feedback is valuable to us. If the solution was effective, please mark it as 'Accepted Solution' to assist other community members experiencing the same issue.
Hi @nknareshkumar21 ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution we provided for your issue worked for you or let us know if you need any further assistance?
Your feedback is important to us, Looking forward to your response.
Hi @nknareshkumar21 ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution we provided for your issue worked for you or let us know if you need any further assistance?
Your feedback is important to us, Looking forward to your response.
Hi @nknareshkumar21 ,
To resolve this, you can use the RANKX function inside a calculated column instead. This will calculate the rank across the entire table.
1.Go to Modeling > New Column in Power BI Desktop.
Use the following DAX formula:
Rank =
RANKX(
ALL('Table (2)'),
'Table (2)'[Revenue],
,
DESC,
DENSE
)
2. Replace "Your Table Name" with the actual name of your table.
3. Add this Rank column to your visual alongside Country, Product, and Revenue.
This will correctly assign a unique overall rank to each row based on Revenue.
Result:
If my response solved your query, please mark it as the Accepted solution to help others find it easily.
And if my answer was helpful, I'd really appreciate a 'Kudos'.
When you calculate the sum you need to force context transition, so that the sum is calculated for the correct combination of country and product
Rank = RANKX( ALL('Table'), CALCULATE( SUM('Table'[Revenue]) ),,DESC, Dense )
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 27 | |
| 26 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 36 | |
| 32 | |
| 26 | |
| 23 |