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
Antmkjr
Helper V
Helper V

Rank within category and month

DateNameAmount
1/19/2022A80
1/15/2022A100
1/14/2022B60
2/14/2022C20
2/7/2022C40
2/11/2022A50
3/14/2022B30
3/18/2022A20

 

 


 In the above sample data, i need to create a pbi report, which shows the ranking of each categories in each month.

So  for Month 2 , will show for Category A,Rank = 2, Category C , Rank=1.

AnuTomy_1-1666597347835.png

 

 

 

 

For month = 1, Rank for Category A = 1, Category B =2

AnuTomy_0-1666597325362.png

 

 

 

 

 

 

3 REPLIES 3
Antmkjr
Helper V
Helper V

Is there any way to improve the performance of the above formula?

eliasayy
Impactful Individual
Impactful Individual

hello lease use:

Ranking = RANKX( ALLSELECTED( Ranking[Name] ) , CALCULATE( SUM( Ranking[Amount]) ))

 

Screenshot 2022-10-24 111502.png

Screenshot 2022-10-24 111511.png

Screenshot 2022-10-24 111529.png

  

Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attahced pbix file.

 

Jihwan_Kim_0-1666598590074.png

 

 

 

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.


Go to My LinkedIn Page


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.

Top Solution Authors