Forum Discussion
Plot zero when there is no data in line chart
- 4 years ago
JustinDoh1 What date are you using on the chart? You need to use the DimDate date, and then just do
https://excelwithallison.blogspot.com/2020/04/dimdate-what-why-and-how.html
Zero Measure = [Measure] + 0
Thank you so much for your help.
I think the major portion of issue was resolved, but line graph still does not go down to zero.
So, I am thinking it might be an issue with a Measure.
I have a question. How do we write measure like ( Zero Measure = [Measure] + 0 ) from what I have tried?
ClientD_M2 = COUNTX('vw_census_trend','vw_census_trend'[ClientID]) + 0
- AllisonKennedy4 years ago
Community Champion
JustinDoh1 See attached upated file.
You got halfway there with the DimDate table but still need to:
* Mark it as Date table
* Use it in the visuals and slicer
I have made both changes in the attached file and I think it's behaving as expected now.
Since there are no entries for June, July you'll never see those on the linechart if you use the Report Date, that's why a Date table is so important. Does that make sense hopefully?
Cheers!