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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors