Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
Solved! Go to Solution.
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.
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.
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.
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.
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.
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
@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/
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |