Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

missing data

Hi All

 

I have sales data per customer which I would like to display in line chart for whole year comparing YOY sale. 

Majority of the customers do not place orders every day or  sometimes for the whole week.

Is there a way to add, for the missing weeks, zero value so that the line chart will be one uninterrupted line 

 

below my sales data sample

 

thank you 

 

 

 

7 Replies

    • David_Schrag's avatar
      David_Schrag
      Regular Visitor

      I have the same kind of issue as the original poster. I have many months of customer purchase data, which I have aggregated by quarter (2016-1, 2016-2, 2016-3, etc.). I want to create a line chart visualization that displays every quarter between 2015-1 and 2017-4, including quarters where the total purchases were zero. But I don't have any records in my database when there were no purchases.

       

      I can easily create a table that contains a record for every quarter in the time period, but how would I create a relationship between that table and my purchase records table that would force a zero value to display for a given quarter when there are no matching purchase records? None of the join options seem to do this.