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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.