Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
have the following table:
| Classification | Division | Operations | Value | Year |
| Healthcare | Eastern | Boston | 1,000,000 | 2021 |
| Helathcare | Western | Los Angeles | 500,000 | 2021 |
| Healthcare | Western | San Francisco | 250,000 | 2021 |
| Manufacturing | Southern | Texas | 100,000 | 2020 |
| Manufacturing | Southern | Florida | 5,400,000 | 2020 |
So each field (except Value) will be a slicer. The ranking will need to be done dynamically depending on what slicers are selected. So if Healthcare is selected, the ranking will take into account the 3 rows for healthcare and rank by value descending. If Healthcare and Los Angeles are selected, then the ranking will be done with just that row. If no slicers selected, than rank entire table.
not sure how to use Rankx function to get this done. So far my results don't bring back what i am expecting.
Scott
Solved! Go to Solution.
Hi @scabral ,
The formula should be:
Hi @scabral ,
The formula should be:
@scabral , Try like
Rankx(allselected(Table[Classification]) , calculate(Sum(Table[Value])) , ,desc, dense)
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
Measure Rank: https://www.youtube.com/watch?v=DZb_6j6WuZ0&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=40
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 8 | |
| 7 | |
| 6 |