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
Jayasimha
Frequent Visitor

Dynamic Rank in table based on multiple columns and one value

Hi Experts,

@PowerBI 

I have created a table with multiple columns and one value field. I need to create a dynamic rank as there are some slicers available. The rank should be dynamic and change based on the filters

My table is as below:

RegionMonthSourceClientServiceSub ServiceSalesProductSub Product
         

 

I created a rank column using DAX but it is static and does not change when the slicers are filtered upon. Any help is appreciated.


Thank you

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Hello

Of your help please,

As I can make a dynamic ranking within a matrix object, where it shows me the ranking of the client based on sales and when I see their products shows me the ranking by product.

v-yingjl
Community Support
Community Support

Hi @Jayasimha ,

Not certain what is your table looks like, you can refer this simliar issue about dynamic rank based on multiple columns and try to create simliar measures:

https://community.powerbi.com/t5/Desktop/Ranking-of-items-in-3-subcategories/td-p/1106033

 

Hopes it could help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @amitchandak ,

Thank you for getting back. Below is my measure.

 

rankforrows = RANKX(ALLSELECTED(Data),CALCULATE(SUM(Data[Sales]),ALLEXCEPT(Data,Data[Region],Data[Month],Data[Source],Data[Client],Data[Service],Data[Sub Service],Data[Product]),Data[Product])),,Desc)

It also doesn't rank the rows properly. 

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.