bs0d
Well-known Member
- Joined
- Dec 29, 2006
- Messages
- 622
I have daily data set (via query) which may have dates missing. I use a line-graph to view the data. Where dates are missing, the chart will draw a line between the two points, which is visually inaccurate. If the dates are missing, I'd like to see a gap instead, or zero's. So I'm looking for the most efficient way to add missing dates, so that nothing is plotted between the two dates where days are missing.
Here are two ideas:
• VBA Loop Method: Put query to sheet -- loop through rows evaluate and insert where dates are missing (slow or inefficient?).
• Query Method: Create a time table. Do a left join to include all rows from time table, and only those that match in the data query. Limit start and end dates to match min and max of targeted data.
Any feedback would be helpful.
Here are two ideas:
• VBA Loop Method: Put query to sheet -- loop through rows evaluate and insert where dates are missing (slow or inefficient?).
• Query Method: Create a time table. Do a left join to include all rows from time table, and only those that match in the data query. Limit start and end dates to match min and max of targeted data.
Any feedback would be helpful.