Forum Discussion
Deermeat
4 years agoResolver I
Ranking Values in a Measure
Hello, I have two measures that I used to calculate the average of Score and YTM over different industries: YTM (Mid) =
AVERAGEX(
KEEPFILTERS(VALUES('Data (All Issues)'[Industry])),
CALCULAT...
- 4 years ago
Ashish_Mathur
4 years agoSuper User
- Deermeat4 years agoResolver I
Hi Ashish_Mathur,
Thank you so much. That has indeed helped me to solve this problem.
For anyone curious, Ashish used this code:
ActualRank = CALCULATE(MAX('Data (All Issues)'[Industry]),FILTER(ADDCOLUMNS(VALUES('Data (All Issues)'[Industry]),"ABCD",CALCULATE([Ranking],CALCULATETABLE(VALUES('Data (All Issues)'[Industry])))),COUNTROWS(FILTER('Rank',[abcd]='Rank'[Rank]))>0))With a new rank table that just has the numbers of industry in it for the rows.
Once again, thank you Ashish!
- Ashish_Mathur4 years agoSuper User
You are welcome.