Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

NEED HELP WITH RANKING

here iam using this measure to calculate rank it is correct  but what if there is a missing weeknumber in the slicer then it returns 111 need to calculate previous week rank but if a weeknumber  is missing then it shows rank of one more priovous week need help to make  a rankmeasure as i mentioned thanks.

rankprevious week = 
 CALCULATE( RANKX(ALL('Table 3'[CompanyTitle]),[salepayment],,DESC,Dense),FILTER(ALL('tbl_Calendar_ph'),tbl_Calendar_ph[Week Rank]=MAX(tbl_Calendar_ph[Week Rank])-1))

 

1 Reply