Forum Discussion

lkshck's avatar
lkshck
Icon for Helper III rankHelper III
4 years ago
Solved

Simulate null values for missing data

Hey, I have a table which contains a date (by day), a clientId and a count (number of requests). There are some clients which doesn't make requests for some days which leads to no data in this table...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi lkshck ,

     

    I suggest you to create a DimDate table by CALENDAR() or CALENDARAUTO() function. 

    Date = 
    CALENDAR(MIN('Table'[date]),MAX('Table'[date]))

    Relationship:

    Measure:

    Measure = CALCULATE(SUM('Table'[count]))+0

    Use [Date] from DimDate table to create your visuals. Result is as below.

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.