Forum Discussion
Bar Chart by month with items with no data
- 8 years ago
Hi huguest,
In that case, you can choose "months" rather than "calendar months" as shown in below screenshot.
Regards,
Yuliana Gu
Hi huguest,
Create a calendar table which lists unique date values. And you should establish a one to many relationship from 'dimDate' to 'Fact date' based on [date] column.
dimDate =
FILTER (
CALENDAR ( DATE ( 2016, 1, 1 ), DATE ( 2018, 1, 1 ) ),
DAY ( [Date] ) = 1
)
Then, create the stacked column chart, please pay attention to the hilighted part in below screenshots.
Best regards,
Yuliana Gu
- huguest8 years ago
Advocate II
Hello, thank you for your suggestion. It did work to add the leading balnk months to my chart (i.e. january and February), but December is still not showing.
- v-yulgu-msft8 years ago
Microsoft Employee
Hi huguest,
Based on the steps mentioned in my original post, please change the axis type to "Categorical". Then, change [Date] field to "Hierarchy".
Best regards,
Yuliana Gu
- huguest8 years ago
Advocate II
Thank you, the solution is working (for now). I have under the impressiont that it will no longer work when I get into February and have to report on Feb2017 to Jan2018. As the x-axis shows only themonth an not the year, I will end up with Jan2018 as my first bar, then Feb through Dec2017...