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
Krishna1992
Helper I
Helper I

dynamically change top10 customers based on filters/slicers

Hello,

 

I need to filter customers by revenue based on location I filter or slice.

 

Ex. at below, which shows top 10 customers overall. But If I apply any particular location Ex. India, accordingly top 10 customers need to be filtered.

 

Let me know how to filter the same.

 

Untitled.png

If I apply filter or slicer ex. India location that particular customers by revenue needs to be filtered.

Thanks in advance.!!

 

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

hi @Krishna1992 

Here are two same posts for you refer to:

https://community.powerbi.com/t5/Desktop/How-to-drive-the-Top-Bottom-10-Customers/m-p/819142#M393627

https://community.powerbi.com/t5/Desktop/Show-Top-N-and-sum-up-the-Others-as-a-value/m-p/313063#M138...

For your case, you may need to use ALLSELECTED instead of ALL and remove "Others" conditional in the result formula.

Just like this:

Step1:

Add a rank measure for revenue.

Step2:

Add a measure as below:

If([Rank] <=10, [revenue], Blank())

Step3:

Then use this measure in the visuals.

 

Regards,

Lin

Community Support Team _ Lin
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

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi @Krishna1992 

Here are two same posts for you refer to:

https://community.powerbi.com/t5/Desktop/How-to-drive-the-Top-Bottom-10-Customers/m-p/819142#M393627

https://community.powerbi.com/t5/Desktop/Show-Top-N-and-sum-up-the-Others-as-a-value/m-p/313063#M138...

For your case, you may need to use ALLSELECTED instead of ALL and remove "Others" conditional in the result formula.

Just like this:

Step1:

Add a rank measure for revenue.

Step2:

Add a measure as below:

If([Rank] <=10, [revenue], Blank())

Step3:

Then use this measure in the visuals.

 

Regards,

Lin

Community Support Team _ Lin
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.