Forum Discussion
vbourbeau
Resolver II
7 years agoRankx return empty value
Hi, I have a matrix where I want to return the rank of my customer by total sales for a specific period. I put this DAX rank = rankx(ALLSELECTED(InvcDtl[Customer Name]);calculate(sum(InvcDtl[T...
- 7 years ago
Hi vbourbeau ,
Maybe you could refer to below link about rank with hierarchy:
https://dataninjago.com/2017/12/11/dax-ranking-with-hierarchy-drill-down/
Regards,
Daniel He
v-danhe-msft
Microsoft Employee
7 years agoHi vbourbeau ,
Based on my test, you could refer to below formula:
Rank = IF(CALCULATE(SUM(Line[amount]))=BLANK(),BLANK(),rankx(ALLSELECTED(Line[Client]),CALCULATE(SUM(Line[amount]))))
Result:
Regards,
Daniel He
vbourbeau
Resolver II
7 years agoStil there,
Can you send me your modify pbix
- v-danhe-msft7 years ago
Microsoft Employee
- vbourbeau7 years ago
Resolver II
OK but it's a table I need a Matrix to be able to drill down to another level.
The problem is there when we add more level.
- v-danhe-msft7 years ago
Microsoft Employee
Hi vbourbeau ,
Maybe you could refer to below link about rank with hierarchy:
https://dataninjago.com/2017/12/11/dax-ranking-with-hierarchy-drill-down/
Regards,
Daniel He