Forum Discussion
Rank X issues
- Anonymous1 year ago
Hi,
Thanks for the solutions Bibiano_Geraldo and DataNinja777 offered, and i want to offer some moreinformation for user to refer to.
hello stevejames , you can try the following.
Cost per head rank = RANKX( FILTER( ALLSELECTED('Costs'), [AreaName] in values( 'Costs'[AreaName]) 'Costs'[Total]<>0 && NOT(ISBLANK('Costs'[Total])) ), CALCULATE([Cost per head]), , DESC, DENSE )If the information cannot help you can you provide some sample data?
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for that....
My logic is that I need to rank areas within the context of the specific category.
ie within Category X; Area 1 is ranked 3 of 15.
Within Category Y; Area 1 is ranked 1 of 15.
I like the look of your debug measure as that may help lots to understand what it is actually ranking.
Thanks for that.......
Hi,
Thanks for the solutions Bibiano_Geraldo and DataNinja777 offered, and i want to offer some moreinformation for user to refer to.
hello stevejames , you can try the following.
Cost per head rank =
RANKX(
FILTER(
ALLSELECTED('Costs'), [AreaName] in values( 'Costs'[AreaName])
'Costs'[Total]<>0 && NOT(ISBLANK('Costs'[Total]))
),
CALCULATE([Cost per head]),
,
DESC,
DENSE
)
If the information cannot help you can you provide some sample data?
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.