Forum Discussion
Rubal
Helper II
6 years agoHelp with a measure formula
Hi, I have a measure which identifies the "Project Name", based on the "Project Priority Score" (the lowered the score is the highest priority). Top Ranked Project v2= CALCULATE(SELECTEDVALU...
- 6 years ago
Hi Rubal ,
I‘m not sure whether you wanna show as below?
If so,just modify your measure as below:
Top Ranked Project v2= CALCULATE(SELECTEDVALUE('PowerBi Data Export'[Project Name])&"-"&SELECTEDVALUE('PowerBi Data Export'[Status]),TOPN(1,ALLSELECTED('PowerBi Data Export'),'PowerBi Data Export'[Project Priority Score], ASC))If it is not what you need,show me your expected output.
Much appreciated.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
amitchandak
Super User
6 years agoIf you any data grouping that will change your top N or Rank. As you have already taken the project in the row/group/axis take status as MAX, that will convert it into the measure and it can work
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale