Forum Discussion
HanhLe
1 year agoFrequent Visitor
RANKING VALUE
Hi everyone, I want to make a ranking of product type for each lines follow these description, but I got wrong result, hope to receive your help, thanks
Anonymous
1 year agoNot applicable
Hi HanhLe , hello TomasAndersson, thank you for the prompt reply!
Check the following measure:
Top PPH =
VAR CurrentProductType = SELECTEDVALUE('Table'[Product Type])
VAR CurrentLine = SELECTEDVALUE('Table'[Line])
RETURN
RANKX(
FILTER(
ALL('Table'),
'Table'[Product Type] = CurrentProductType
),
CALCULATE(SUM('Table'[PPH])),
,
ASC,
DENSE
)
Result:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HanhLe
1 year agoFrequent Visitor
Hi,
Could you help to check my data, seem it does not work