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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors