Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
m_roussakis
Helper III
Helper III

Looking to add rank to values

I have the following percentage values from a measurement called:

 

'AAN Local'[% AAN Sent]

The values are percentages. 

I wish to rank the percentages and group ties together. Example, all 0% values are rank 1, all higher percentage groups are higher ranks, etc etc. 

Can anyone help me with this ?

Thx



'

3 REPLIES 3
m_roussakis
Helper III
Helper III

I'd like to restate my problem. I feel I didn't explain it well initially. 

 

I want to present my Top-N data in a matrix table, with the following heirarchy:

Rows:

'Local'[Division]

'Local'[Assignment]

 

Values:

'Local'[% Sent]

 

I need to display ONLY the bottom-3 'Local'[% Sent] (percentage values) for 'Local'[Assignment] within each 'Local'[Division]


Ashish_Mathur
Super User
Super User

Hi,

The RANK() function should work.  To receive specific help, share some data to work with and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-xiandat-msft
Community Support
Community Support

Hi @m_roussakis ,

Below is my table:

vxiandatmsft_0-1701137248245.png

The following DAX might work for you:

Column = 
   RANKX('Table','Table'[Per],,1)

The final output is shown in the following figure:

vxiandatmsft_1-1701137323549.png

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.