Two problems with my chart: weekends and continuous data
I am trying to plot a standard line chart, X=Dates and Y=Sum(Percentages of product)
In my access table I have all the dates I would like to show on my chart as the Sum(Percentage of product)=100% every day.
So when I show all data, I have all dates and 100% for each date.
Now when I select one product, the Sum(Percentage of product) might have a data on that particular date or be empty.
My problem is that:
- if I set the X=Dates as continuous, I have all the dates (including weekends which would be nice if I could get rid of) and the Dates for which the Sum(Percentage of product) is empty will have no data and the line will continue from the last available point to the next, which is misleading.
- if I do not set the dates as continuous, the empty data will just not show. I would like them to be zero instead. Empty=zero to me.
I have attached the 2 charts which are not what I want. I would like to have all the dates on my X axes excluding weekend) and show 0 when data is missing.I hope that makes sense.
Many thanks in advance.
As you can see, the dates are only Working days, and there are period where there is no data. My problem is that I would like to do a continuous chart, by that I mean having all dates
Re: Two problems with my chart: weekends and continuous data
Unfortunately, QlikView is very poor at showing you missing data, such as dates for which you have no activity. The most common solution is probably to create a date island, a calendar of dates that is completely separate from your data. Then you tie your real data together with the date island by using if() statements in the chart. Performance is, unfortunately, really bad for large data sets
Attached is a high-performance example based on a solution by Michael Solomovich. It's unfortunately a bit complicated, particularly when applied to certain real world data models. There's a lot more information in the below thread, including an example of the date island approach.