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
Anonymous
Not applicable

Interactive Bar Chart Cross Filtering

Hi Folks

I need to create an Interactive Visual of which consists of 3 bar charts

Bar chart 1- Products

Bar chart 2 – Product Defect Reasons

Bar chart 3- Manufacturing Plant

and a TOP N filter which filters the top n bars based on the selected n and contains a cross filter functionality such that

  • By clicking on a product bar chart 1-> top n bars of the chart 2 show the top n defects reasons of the selected Bar in chart 1 and then by clicking on any Bar in chart 2 -> Top n bars of chart of chart 3 showing the associated plant of the selected reason in chart 2

I have attached an image for reference

 

Infijeevan_1-1646310887206.png

 

@amitchandak @Greg_Deckler @diex @aj1973 @BA_Pete @Jihwan_Kim @Anonymous @Allison 

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , You can use TOPN filter at visual level fixed

 

You can create TOPN measure for each one with dynamic N and can use that

I think drill should work unless you point out some specific case

 

example - one for each visual based on axis column

Top N =calculate([M1], TOPN([selected N],allselected(Table[Event]),[M1],DESC), values(Table[Event]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks for getting back Amit : Those steps have been followed but still the issue persists the following are the measures that i have used

toprankingmeasuresprod = IF('Measure Table'[product rank]<='Measure Table'[SelectedTopNValue],'Measure Table'[total complaints])

toprankingmeasuresreasons = IF('Measure Table'[reasons rank]<='Measure Table'[SelectedTopNValue],'Measure Table'[total complaints])

toprankingmeasureplant = IF([plantrank]<='Measure Table'[SelectedTopNValue],'Measure Table'[total complaints])

I think its more complex than that. let me re-explain the issue

so i have a top N slicer which has [Top 1, Top2, Top 3.....and so on] after selecting say Top 5 I have Top 5 bars displayed for all the 3 bar charts now i want an additional cross filtering functionality where

by clicking 1 bar in a bar chart of the top 5 bars from products table i get the top 5 product defect reasons for the selected product bar and then cliciking on 1 Bar from those top 5 reasons i get the top 5 plants

please check the attached image in the 1st post for reference As of now in PBI if i click on any bar i get the following response

Infijeevan_0-1646379452419.png

 

@amitchandak 

Did you get any solution to this?

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 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