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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
natg
Frequent Visitor

Dynamic filter across visuals

Pros,

 

I am trying to build a dashboard with a set of visuals where the dashboard need to answer the following questions.

 

Visual 1: Who are my Top 5/10 customers by a measure (THis is accomplished)

 

Visual 2:  Where my Top N customers are from (Preferably on a map, to plot only data points of customers who are in First visual)

 

Visual 3: What products are bought by my Top N customers? (Any visual that can restrict the data based on first visual)

 

I have uploaded the PBIX file in this lication. 

https://drive.google.com/open?id=17G4GEJzPWcjOMh9Zy-AME0ugSQF0ZXEZ

 

 

PowerBI _Dashboard.png

 

 

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @natg,

 

Based on my test, you can firstly use the formula below to create the measure to calculate the [Custom Rank], then you should be able to use the [Final Sales] measure to apply visual level filters([Final Sales] is greater than 0) on the visuals of the three answers to get the expected result in your scenario.

Customer Rank = 
RANKX (
    ALL ( 'Sample'[Customer] ),
    CALCULATE ( [Total Sales], ALLEXCEPT ( 'Sample', 'Sample'[Customer] ) ),
    ,
    DESC
)

r1.PNG

 

Here is the modified pbix file for your reference. Smiley Happy

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @natg,

 

Based on my test, you can firstly use the formula below to create the measure to calculate the [Custom Rank], then you should be able to use the [Final Sales] measure to apply visual level filters([Final Sales] is greater than 0) on the visuals of the three answers to get the expected result in your scenario.

Customer Rank = 
RANKX (
    ALL ( 'Sample'[Customer] ),
    CALCULATE ( [Total Sales], ALLEXCEPT ( 'Sample', 'Sample'[Customer] ) ),
    ,
    DESC
)

r1.PNG

 

Here is the modified pbix file for your reference. Smiley Happy

 

Regards

Hi @v-ljerr-msft,

 

Thanks for the help. Looks like need to spend more time understanding how the all except works in this case.

 

When I applied the product filter, the visuals are fine and working as expected. Whereas the rank index values were incorrect in the table. 

 

Once I included Product also as another clause in the all except option, it looked fine. Many thanks for the help.

 

Customer Rank =
RANKX (
ALL ( 'Sample'[Customer] ),
CALCULATE ( [Total Sales], ALLEXCEPT ( 'Sample', 'Sample'[Customer], 'Sample'[Product] ) ),
,
DESC
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.