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
vbourbeau
Resolver II
7 years agoOk I do a example see the attachment.
the result give that
ClienD and ClientE don't have any sales in 2016 but the table show them?
If I remove my Rank measure the filter work ok.
I don't know how to add my pbix so I create a link. https://we.tl/t-f0OQ4nhFOm
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
- vbourbeau7 years ago
Resolver II
Stil 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.