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

Conditional filtering between charts

Hi Colleagues,

I have an issue with filtering.

So i have 2 graph, first  graph has YEARMONTH on the X line, the second is a Pie chart, which has not YEARMONTH dimension,therefore on the Pia chart i get the sum value.

 

I would like to use the first diagram as a filter. When I dont use it as filter, then on the pie chart i would like to see the last yearmonth value, when i use on the first graph filter for example 202104, then i would like to see on the pie chart the 202104 value.

 

Is it possible?

 

Thank you in advance!

 

best regards,

bálint

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please refer to my pbix file to see if it helps you.

Create measures and a column.

measure_ = SELECTEDVALUE('Table'[date])
Column = IF('Table'[Year]=MAX('Table'[Year]),'Table'[VALUE],BLANK())
Measure_2 =
VAR _maxyear =
    MAX ( 'Table'[Year] )
VAR maxyaevalue =
    IF ( MAX ( 'Table'[Year] ) = _maxyear, MAX ( 'Table'[VALUE] ), 0 )
RETURN
    IF (
        MAX ( 'Table'[date] ) = [measure_],
        MAX ( 'Table'[VALUE] ),
        SUM ( 'Table'[Column] )
    )

 Then Click the bar chart>>Format>>Edit interactions. Then choose filter on pie chart.

vpollymsft_0-1652239027618.png

 

vpollymsft_1-1652239065885.png

 

Best Regards

Community Support Team _ Polly

 

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

Please refer to my pbix file to see if it helps you.

Create measures and a column.

measure_ = SELECTEDVALUE('Table'[date])
Column = IF('Table'[Year]=MAX('Table'[Year]),'Table'[VALUE],BLANK())
Measure_2 =
VAR _maxyear =
    MAX ( 'Table'[Year] )
VAR maxyaevalue =
    IF ( MAX ( 'Table'[Year] ) = _maxyear, MAX ( 'Table'[VALUE] ), 0 )
RETURN
    IF (
        MAX ( 'Table'[date] ) = [measure_],
        MAX ( 'Table'[VALUE] ),
        SUM ( 'Table'[Column] )
    )

 Then Click the bar chart>>Format>>Edit interactions. Then choose filter on pie chart.

vpollymsft_0-1652239027618.png

 

vpollymsft_1-1652239065885.png

 

Best Regards

Community Support Team _ Polly

 

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

Anonymous
Not applicable

Hi @Anonymous , 

The interactions between bar charts and visuals don't work in the same way in between visuals. A bar chart can be  used to filter out information so when you click on a chart the information on other visuals  (including slicers) is filtered however when you click on a donut chart or pie chart the slicer is not filtered out, this as to do with the purpose of the slicer.

 

IfI have misunderstood your meaning, please provide your pbix file without privacy information and your desired output.

How to Get Your Question Answered Quickly 

 

Best Regards

Community Support Team _ Polly

 

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

 

 

Anonymous
Not applicable

Hi,

 

Thank you for your answer.

 

Yes, i would like to use the bar chart as filter, the donut chart is not used for filtering.

 

So this is my goal, that the bar chart is not filtered, then we would like see in donut chart the max yearmonth volume, when the bar chart i choose for example the 202201, then the donut chart is filtered by bar chart.

 

I hope my question is clear 🙂

 

Thank you,

 

best regards,

bálint

 

amitchandak
Super User
Super User

@Anonymous ,

you can use use isfiltered

 

if(isfiltered (Table[Year]), [Measure],calculate([Measure], filter(Table, Table[year month] =max(Table[year month]) ))

 

https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

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

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.

Top Solution Authors