Forum Discussion
Rankx return empty value
- 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
I realize that my date measure are on another table that InvcDtl. It's the reason why the rank took all my customer. But my date table are linked with my InvcDtl table? Why the Date filter won't apply?
- vbourbeau7 years ago
Resolver II
Ok 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-msft7 years ago
Microsoft 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
- vbourbeau7 years ago
Resolver II
Stil there,
Can you send me your modify pbix