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
Hi,
I have a measure that dynamically ranks companies in the Top 100 using a Field Parameter to let users switch between RISKCONTB and BV. The ranking uses RANKX with ALLSELECTED on Company, Subsector, and Country.
Problem:
When I add the RATING column to my visual, the ranking breaks. Instead of showing one consistent rank per company (based on total value), the rank resets per Rating group. For example:
COMPANY RATING RISKCONTB Rank (WRONG)
| Apple | AAA | 50 | 1 |
| Microsoft | AAA | 45 | 2 |
| Tesla | AA | 40 | 1 |
| Apple | AA | 30 | 2 |
Expected Result:
COMPANY RATING RISKCONTB Rank (CORRECT)
| Apple | AAA | 50 | 1 |
| Apple | AA | 30 | 3 |
| Microsoft | AAA | 45 | 2 |
| Microsoft | BBB | 25 | 4 |
I need the rank to stay consistent per company regardless of the Rating row, while still allowing dynamic measure switching via the Field Parameter.
Solved! Go to Solution.
Hi @ameyshar123 ,
Thanks for reaching out to Microsoft Fabric Community.
Just wanted to check if the responses provided were helpful. If further assistance is needed, please reach out.
Also to assist better, could you share sample data or sample .pbix file without any sensitive information. You can upload your files to any cloud storage like OneDrive or GoogleDrive and paste the link here with appropriate permissions.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Thank you.
Hi @ameyshar123 ,
We wanted to kindly follow up regarding your query. If you need any further assistance, please reach out.
Thank you.
Hi @ameyshar123 ,
Thanks for reaching out to Microsoft Fabric Community.
Just wanted to check if the responses provided were helpful. If further assistance is needed, please reach out.
Also to assist better, could you share sample data or sample .pbix file without any sensitive information. You can upload your files to any cloud storage like OneDrive or GoogleDrive and paste the link here with appropriate permissions.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Thank you.
@ameyshar123 The Dynamic Rank part is indication that you need to use Calculation Groups and not Fields Parameters.
@ameyshar123 can you share a sample PBIX file, using OneDrive/Google Drive, and remove any sensitive information before sharing.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@ameyshar123 you have to add the rating column in the ALLSELECTED as well
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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 |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 8 | |
| 6 | |
| 6 |