Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I've used RANKX before but with filter. I can not get it to work without Filter. My goal is to simply Rank all customers by Sales.
Fields used:
Fact_Sales[Sales_Sum] Measure that Sums Sales
Dim_Customer Table (distinct row per Customer linked to Sales by CustomerKey)
Measure
Please and Thank you and I give KUDOS and mark as SOLVED!
Hi @Anonymous ,
I think you want your measure to not be affected by other columns. Please try to use ALL function and ALLEXCEPT function.
CustomerRank_Sales = RANKX(ALL('Table'),CALCULATE(SUM('Table'[Sales_Sum]),ALLEXCEPT('Table','Table'[Customer])))
There is a blog you can refer to:
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I am not clear about your question. Share the link of the PBI file and show the result there clearly.
Sorry, I did not see that the Rank numbers disappeared in the above example. I edited it to show the rank number.
I described the data fully. I can't share the file. The Cube has maybe 15 tables including a calendar table. The cube works perfect.
Hopefully that is all you need.
Thank you much!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
75 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |