Forum Discussion
Plot zero when there is no data in line chart solution affects the date filter
- 5 years ago
Hi, Anonymous
Your data is not continuous, and the date column has a specific time.
So you need to create a column and an additional date table,then use that date in slicer.
Like this:
Column = DATE(YEAR([CreatedDate]),MONTH([CreatedDate]),DAY([CreatedDate])) Table = CALENDAR(MIN(testdataPowerBIcsv[CreatedDate]),MAX(testdataPowerBIcsv[CreatedDate]))Here is my sample .pbix file.Hope it helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Anonymous
It’s my pleasure to answer for you.
According to your description,If the first picture just showed the wrong date range,you can set the start and end time period in the x-axis of the line chart.
Like this:
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous5 years agoNot applicable
Hi Janey Guo,
I checked my settings, but they are exactly the same as yours. (Although thanks for meantioning. Indeed something I could have overlooked)
Note that all my data is just in one table. So it should be something easy.
Also all my filters on the y-axis are working, only the CreatedDate on the x-axis isn't working.
Highly appreciate your help,
Catherine
- v-janeyg-msft5 years agoCommunity Support
Hi, Anonymous
Try like this:
column:Year Month = format([Date],"mmm yyyy") measure := CALCULATE ( COUNTX ( 'Cases', 'Cases'[CaseNumber] ), ALLEXCEPT ( 'Cases', 'Cases'[YearMonth] ) )+0Could you mind providing some sample data ?So that we can help you more clearly.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous5 years agoNot applicable
I tried it, but then I see the sum of all [CaseNumber] for all CreatedDates the same. No filter on the y-axis anymore.
So it is just the opposite of what I want, i.e. a working filter on the x-axis.
(I will see if I can generate a sample for you, I encountered some hick-ups to make it)