Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi All,
I have two charts on report page - one trend chart ( 13months ) and also column chart( by country on Axis X - and values) - but this chart is only for one month. When i try to filtered trend chart by country from column chart it one dot appears for one month.
I know, i can disable filtering charts by interactions, but i would like to filter trend chart only by country, is it even doable ?
Thanks
Solved! Go to Solution.
Hi @Betwin ,
Create a measure instead of using filters,put the filter criteria in the measure,such as below:
Measure = IF(MONTH(MAX('Table'[Date]))=1, CALCULATE(SUM('Table'[Visitor]),FILTER('Table',YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))-1&&MONTH('Table'[Date])=12)), CALCULATE(SUM('Table'[Visitor]),FILTER('Table',YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))&&MONTH('Table'[Date])=MONTH(MAX('Table'[Date]))-1)))
And you will see:
Pls note:in column chart,the values field should use the measure while in line chart use the fact table data.
Attached is the .pbix file if needed.
please share the sample data and expected output.
Proud to be a Super User!
Ryan, really sorry i cannot upload pbix on any filehosting page.
Share the screenshots, hope it would help. - i'm affraid it's not doable.
Thanks anyway.
Hi @Betwin ,
Remove the "date" from your filters,and you will see:
Hi @v-kelly-msft , thnaks for replay
I cannot get rid off filters on both charts, as column charts should be always filtered on last month values( in this case June 20)
I found "around solution" - duplicate data set - create relantionship beetwen country and use duplicated data to create trend chart.
I know that is not the best solution, but i do not have better now.
Thanks
Hi @Betwin ,
Create a measure instead of using filters,put the filter criteria in the measure,such as below:
Measure = IF(MONTH(MAX('Table'[Date]))=1, CALCULATE(SUM('Table'[Visitor]),FILTER('Table',YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))-1&&MONTH('Table'[Date])=12)), CALCULATE(SUM('Table'[Visitor]),FILTER('Table',YEAR('Table'[Date])=YEAR(MAX('Table'[Date]))&&MONTH('Table'[Date])=MONTH(MAX('Table'[Date]))-1)))
And you will see:
Pls note:in column chart,the values field should use the measure while in line chart use the fact table data.
Attached is the .pbix file if needed.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
80 | |
51 | |
38 | |
34 |
User | Count |
---|---|
92 | |
75 | |
52 | |
49 | |
45 |