Forum Discussion
Emmy66
Helper V
5 years agoRanking
Hi, Your help on this will be appreciated. I'm trying to do top 5 projects by users using the below dax. Top 5 Projects = VAR ProjRank = RANKX(ALL(User[First_LastName]),[NoOfProjects],,DESC) ...
Emmy66
Helper V
5 years agoHi parry2k , thanks for your prompt reply, very much appreciated. I've tried out the approach on the link you mentioned but it didn't work for me (See below).
On using TopN filter, I also tried that but it returns all the records as I mentioned earlier which I believe is because of the ties.
VAR DepartRank = RANKX(ALL(User[First_LastName]),([NoOfProjects]+INT(CALCULATE(MIN(Dates[Date]))) / 100000))
RETURN
IF(DepartRank<=5, ([NoOfProjects]+INT(CALCULATE(MIN(Dates[Date]))) / 100000), BLANK())
Any further ideas/solution will be appreciated.
Emmy66
Helper V
5 years agoI have resolved the issue using rand() by applying these methods.
Top 5 Projects =
VAR ProjRank = RANKX(ALL(User[First_LastName]),[NoOfProjects],,DESC)
RETURN
IF(ProjRank<=5, [NoOfProjects], BLANK())
2nd: TieBreaker = Top 5 Projects +Rand() and then used TopN to select Top5 based on TieBreaker measure.
Thanks again parry2k for trying to assist.
Thanks again parry2k for trying to assist.