I have some data that I am trying to represent using a graph with SSRS. Before I can generate this report, I am trying to account for data that does exist. I have setup a small data mart which aggregates daily totals. For some groups, data for a particular week does not exist. I am looking for a way to account for that data, so when I start to generate my reports, the line graphs represent the actual data, 0 for values that does exist. As an example:
yearnbr weeknbr restaurant mealsserved
2014 1 Joes Pasta 5
2014 2 Joes Pasta 4
2014 4 Joes Pasta 2
With the example above, the data for week three doesn't exist. I would like generate a query which could insert a 0 or null value for week 3. When I generate my report, the data for week 2 and 4 connect. I need to insert a 0 or Null for week 3. I am using SQL Server 2008 R2.