Forum Discussion
vbourbeau
7 years agoResolver II
Rankx 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
7 years agoMicrosoft Employee
Hi 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
7 years agoResolver II
Stil there,
Can you send me your modify pbix
- v-danhe-msft7 years agoMicrosoft Employee
- vbourbeau7 years agoResolver 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 agoMicrosoft 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