Forum Discussion
Power BI Charting Question
I have a situation where I want to show every month for this year on the X-axis, but if there is no data for a month, just leaves it blank (no 0 points or anything). Below is the chart I want, but I had to add 0 values to the table for Jan 2020 (circled in red).
If there is no data in the "weather" table for Jan 2020, I want Jan 2020 to be on the x-axis, but it blank on the chart.
4 Replies
- espo4lifeHelper I
Thank you az38 but it did not seem to solve my problem. Here is a samle pbix file with the table and my Date dimention and your Calendar one.
https://www.dropbox.com/s/23s68yqo7d782mq/weather.pbix?dl=0
Please look at it and see if/what I am missing. Thank you so much in advance!
- mahoneypatMicrosoft Employee
Two potential suggestions
1. Under the formatting options for the chart, fix the X-axis to your desired start date.
2. Add a constant measure (e.g., Constant = 1) and add that to your chart. Color it so it is not visible. It would show in your legend, of course. Not a great option, but a potential quick fix. You could even hide that part of the legend with a little white rectangle.
If this works for you, please mark it as solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat