Forum Discussion
Rankx should be easy! Why doesn't this work?
- 2 years ago
Hello,
You were on the right track by using ALL. The only issue now is that since you remove all filters the values are same for all rows so every row returns one. By adding a column reference the calculation should work. E.g. all(SalesTable[Region])
I recommend checking this article by SQLBI: Introducing RANKX in DAX - SQLBI
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Whilst ValtteriN solution works, I am still a bit confused about this. Reviewing several articles about this function, the implication is you can simply use a format like RANKX(SalesTable, [COS Measure]).
Eg https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/
In this article it states: