Forum Discussion
Jim123456789jim
8 years agoFrequent Visitor
DAX Rank()
Hi All, I have created a table report with columns coming from Excel. Player Matches Avg StrikeRate Runs Rohit 102 34 135 4500 Paul 112 32 1...
Zubair_Muhammad
8 years agoCommunity Champion
Try this as a calculated column
RANK =
IF (
Batsmen[Criteria] = 1,
RANKX ( FILTER ( Batsmen, Batsmen[Criteria] = 1 ), [Runs],, DESC, DENSE )
)Zubair_Muhammad
8 years agoCommunity Champion
As a Measure
RANK Measure =
IF (
SELECTEDVALUE ( Batsmen[Criteria] ) = 1,
RANKX (
FILTER ( ALLSELECTED ( Batsmen ), Batsmen[Criteria] = 1 ),
CALCULATE ( MAX ( Batsmen[Runs] ) ),
,
DESC,
DENSE
)
)