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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I'm trying to perform a very simple RANK calculation of Stores but the result is returning the same ranking for multiple stores. I have a simple fact table with multiple transactions per store and then a DimStore table. When I look at a table ranking the stores, there are multiple 1s, 2s, 3s in the ranking.
The measure is: RANKX(ALL(DimStore), Fact[Sales], ,DESC, Dense)
Fact[Sales] is a SUM measure and I need the ranking to be dynamic based on filter context that could be passed. Any ideas why this would be happening? I've tried ALLSELECTED.
Hi,
Your measure should be something like this
=RANKX(ALL(DimStore[Store Name]),[Sales], ,DESC, Dense)
To your visual, drag Store Name from the DimStore Table. Sales being a measure should never be precedeed with the Table name.
User | Count |
---|---|
98 | |
76 | |
75 | |
49 | |
27 |