Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Plot zero when there is no data in line chart solution affects the date filter

Hi,   I have almost the same issue as descibed here:   https://community.powerbi.com/t5/Desktop/Plot-zero-when-there-is-no-data-in-line-chart/td-p/506235 https://community.powerbi.com/t5/Desktop/...
  • v-janeyg-msft's avatar
    v-janeyg-msft
    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.