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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
umutkoyun
Frequent Visitor

ranking one column grouped by another column

hi all,

 

I am trying to rank accounts grouped within their categories. I came to some part but I couldt reach to the exact solution. Please check the sample file.


Sample File 

I dont understand why

  1. under group 335 - zero value must get rank 4 but it gets rank 8 and rank 4 is missing
  2. under group 120 - listed as rank 2 and rank 4 but it should be 1 & 2
  3. under group 393 - listed as rank 1 and rank 10 ??? should be 1 & 2

 

what am i doing wrong ?

 

 

Thank you for your time & help...

 

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @umutkoyun ,

 

Approve with @Jihwan_Kim. Here are several methods may help you:

1. Change the Aggrate of Measure, such as Average, Maximum, Minmum:

vjianbolimsft_0-1661244667948.png

2. Change the Data type of Measure 3 to Text:

 

vjianbolimsft_0-1661247198042.png

Best Regards,

Jianbo Li

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

View solution in original post

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @umutkoyun ,

 

Approve with @Jihwan_Kim. Here are several methods may help you:

1. Change the Aggrate of Measure, such as Average, Maximum, Minmum:

vjianbolimsft_0-1661244667948.png

2. Change the Data type of Measure 3 to Text:

 

vjianbolimsft_0-1661247198042.png

Best Regards,

Jianbo Li

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

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your dataset correctly, but please check the aggregation type when the Measure3 column was pulled into the visualization. Now, it is SUM, so that is why it is not showing the correct ranking number when one accountnumber showed up two or more than two rows in the table.

If your DAX formula that is used for creating calcualted column [Measure3] is correct, try using different aggregation type when pulling into the visualization.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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