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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
learn_powerbi
New Member

Control a visual through filter from a second visual

Hi,

 

I am trying to do something seemingly simple but cannot get it to work despite many trials and research. I am thinking it cannot be done but would apppreciate any guidance.

 

Data: For the purposes of illustrating the problem, i will be using Power BI sample data which has 1 table called "Financials" contaiing columns for country, product, segment, sales, profit etc.

 

Visuals: I have 2 visuals. a bart chart and a table as shown

 

learn_powerbi_0-1748468704021.png

Problem: What I want is for the bar graph to display nothing when a product is selected in the table. I created a measure which will return blank if financials[product] is filtered or will return gross sales otherwise. I set this as the input to the Y axis of the bar graph but it always shows the chart even if I select a product on the table. Is there any way to make it work? 


1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @learn_powerbi 

I just tried to reproduce this and got it working at my end.

 

A couple of things to check:

Gross Sales if Product Not Filtered = 
IF (
    NOT ISFILTERED ( financials[Product] ),
    SUM ( financials[Gross Sales] )
)

PBIX attached for reference.

Does this work for you?

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

3 REPLIES 3
OwenAuger
Super User
Super User

Hi @learn_powerbi 

I just tried to reproduce this and got it working at my end.

 

A couple of things to check:

Gross Sales if Product Not Filtered = 
IF (
    NOT ISFILTERED ( financials[Product] ),
    SUM ( financials[Gross Sales] )
)

PBIX attached for reference.

Does this work for you?

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

thanks! it does work but only for your file. Even when I copy your formula for the measure in mine, it doesnt work. Is there some setting I need to change?

I tried again and had to change the interaction setting and now it works! thank you

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.