Forum Discussion
kulpowerbi
Helper I
5 years agoRank for Hierarchy in Matrix visual not working
I am looking for solultion that find ranking even when we have Hirarchy. But on my method ranking is only working for one category in matrix, rest are showing rank as one onlye. Attached please see t...
- 5 years ago
kulpowerbi , Thanks for sharing the file. Please try a formula like
%To GoalRank_Ofc = RANKX(FILTER(ALLSELECTED(Clinics[Office],Clinics[Region]),Clinics[Region] =max(Clinics[Region])),[%To Goal],,DESC,Dense)
Anonymous
5 years agoNot applicable
Hi kulpowerbi ,
Based on your description, you can create a measure as follows.
Measure =
var x1=RANKX(ALL('Table'[Region]),CALCULATE(SUM('Table'[%-Goal])),,DESC)
var x2=RANKX(FILTER(ALL('Table'[Office],'Table'[Region]),[Region]=MAX('Table'[Region])),CALCULATE(SUM('Table'[%-Goal])),,DESC)
return
IF(HASONEVALUE('Table'[%-Goal]),x2,x1)
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
kulpowerbi
Helper I
5 years agoThank you Anonymous for posting the solution, I will try out this way and revert back.