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...
Phil_Seamark
8 years agoMicrosoft Employee
Actuall, I see what you are after. I will post the calculation in an hour. I just have to head out the door. :)
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_Muhammad8 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 ) )