Forum Discussion
Anonymous
6 years agoNot applicable
Reference line for Clustered Column chart
Hi All, I am trying to add a reference line after year 2020 in below clustered column chart to differentiate Past Present and Future values. Y axis contains $ vale in year and X contains year...
v-lili6-msft
6 years agoCommunity Support
hi Anonymous
You could try this way as below:
Create a measure as this logic
Avg after 2020 = IF(SELECTEDVALUE('Table'[Year])>=2020,CALCULATE(AVERAGE('Table'[Net Flow]),FILTER(ALLSELECTED('Table'),'Table'[Year]>=2020)))
In line and clustered chart visualizations, drag this measure in line values
and here is sample pbix file, please try it.
Regards,
Lin