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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply

User selects how many items are displayed when ranking

In a matrix visual, I am trying to visualize the biggest customers in each product group based on turnover. One customer can have purchases in multiple product groups.

I managed to solve this with the following formula:

Rank Product = IF( ISINSCOPE( Global_Customer[Name] ), RANKX ( CALCULATETABLE ( VALUES ( Global_Customer[Name] ), ALLSELECTED ( Global_Customer[Name] ) ), [DB 1] ) )


However, I want the user to be able to select how many customers should be displayed in each product group. My approach was to create a parameter but failed to successfully implement that filter to the formula above.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.