Forum Discussion
Anonymous
4 years agoNot 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...
- Anonymous4 years ago
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.
amitchandak
4 years agoSuper 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/