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 years.
I am not able to find a way to do this. Please help!
8 Replies
- moltraHelper IV
Have you tried a line and Stacked Chart or line and clustered chart visualizations?
- AnonymousNot applicable
Yes, I have tried line and stacked Chart but couldn't get the reference line after coloumn 2020.
- moltraHelper IV
Can you post a representative table of your data?
- v-lili6-msftCommunity 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