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
ajinkyacgaikwad
Advocate I
Advocate I

Graph Interaction and filter

I have two graphs one has country level data and another has province level data.
Country Graph has all the countries and Province graph has all the provinces from all countries.

So when I select a specific country in bar graph - related provinces get highlighted. which is basic.

 
 

BasicBasicLooking forLooking for

 


I am looking for a functionality where one country is selected then the province graph should show only the related provinces in Province graph and nothing else. 
When nothing is selected in the country graph province graph should show all the provinces.


2 REPLIES 2
ajinkyacgaikwad
Advocate I
Advocate I

Hi Adam
Thank you for reverting
I am looking more for on top interaction. when a value is selected on the bar graph and not in the slicer.

Anonymous
Not applicable

Hi @ajinkyacgaikwad ,

 

You can create a filter table of countries and then create the following measure to apply it to the filter.

 

Refer to the following:

vkongfanfmsft_0-1717037806611.png

vkongfanfmsft_3-1717037977499.png

 

create below measure:

result_ =
VAR sel =
    SELECTEDVALUE ( slicer_[Country] )
RETURN
    IF ( sel = MAX ( 'Table'[Country] ), 1, 0 )

vkongfanfmsft_1-1717037850801.pngvkongfanfmsft_2-1717037865899.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.