Forum Discussion

fabiocovre's avatar
fabiocovre
Advocate I
8 years ago
Solved

Create a ranking for sensitive data

Hello,

 

I'm working with medical data, and due that, I cannot show the name of the people in my report.

 

I have this following table in my dashboard:

 

Name - Cost

John - 50,000

Mark - 20,000

Peter - 10,000

 

And I need to change the collumn "Name" for a collumn called "Ranking". Example below:

 

Ranking - Cost

1 - 50,000

2 - 20,000

3 - 10,000

 

I tried to do this formula "Ranking = RANKX(ALLSELECTED('_BASE'[Name]);[SumCost])", but when I replace the "Name" field in my table for "Ranking", this is the result.

 

Ranking - Cost

1 - 80,000

 

Is it possible to be done?

Thank you!

5 Replies