<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filling in data gaps with zero values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438049#M163307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any chance you could be more specific with the scripting requirements as I can't get what you've suggested to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only have one dimension (TIMESTAMP) and a set of values. (Table A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a master calendar with the field TIMESTAMP which has a row for every single date. (Table B)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have joined Table A to Table B using an outer join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My resultant data set still only consists of the dates and values from Table A, not the missing (zero value) dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2012 15:22:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-14T15:22:27Z</dc:date>
    <item>
      <title>Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438041#M163299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say I have this data for a month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 30px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01/04/11&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10/04/11&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/04/11&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15/04/11&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21/04/11&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to fill in the gaps between so that all the dates in the month are shown, but with zero against the ones that are zero. This is because when I try to plot this data on a chart I only get 5 values, despite me having created a master calendar so that the other dates exist. I need the chart to show the continous days with zero values against the days that are zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 11:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438041#M163299</guid>
      <dc:creator />
      <dc:date>2012-12-14T11:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438042#M163300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I often have problems with this and am generally relieved when I don't as gaps in a timeseries are a massive no-no. Things you may want to try include:&lt;/P&gt;&lt;P&gt;1. on the date dimension, tick the 'Show all values' checkbox&lt;/P&gt;&lt;P&gt;2. on the presentation sheet, untick the 'Suppress zero values' and 'Suppress missing values'&lt;/P&gt;&lt;P&gt;If that doesn't work, I have in the past resorted to setting up dummy values of 0 in my fact tables for each combination of date and the major dimensions my charts are shown by. I hated myself for doing so and haven't had to use it recently.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 11:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438042#M163300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-14T11:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438043#M163301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a calendar. they are many in these forums...&lt;/P&gt;&lt;P&gt;In your table or chart, go to Properties &amp;gt; Presentation &amp;gt; Uncheck supress cero values and check show ceros.&lt;/P&gt;&lt;P&gt;If your function is SUM, sum(nothing)=0, it'll show cero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 12:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438043#M163301</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2012-12-14T12:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438044#M163302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jon, thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The show all values checkbox kind of worked, but now the dimension axis doesn't adjust when data selections are made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. No effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I create dummy zero values in the fact tables? My data comes from a database so can't edit the source. My data structure is essentially this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Master Calendar: &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Timestamp&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Timestamp&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;01/04/11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03/04/11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&lt;/P&gt;&lt;P&gt;02/04/11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/04/11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;03/04/11&lt;/P&gt;&lt;P&gt;04/04/11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian, I already have a master calendar. Not sure what you mean by sum(nothing)=0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 12:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438044#M163302</guid>
      <dc:creator />
      <dc:date>2012-12-14T12:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438045#M163303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that if you have a selection, the missing dates are not associated, so will never be shown in the axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've solved once this problem by adding another expression like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;Date={"&amp;gt;=$(=min(Date))&amp;lt;=$(=max(Date))"}&amp;gt;}1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And check the "Invisible" box in the Expressions tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 13:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438045#M163303</guid>
      <dc:creator>thomduvi83</dc:creator>
      <dc:date>2012-12-14T13:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438046#M163304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice tip Thomas. That should save me using this dummy value in the future.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 13:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438046#M163304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-14T13:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438047#M163305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply but adding this expression doesn't seem to do anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to fill in the missing data in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 13:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438047#M163305</guid>
      <dc:creator />
      <dc:date>2012-12-14T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438048#M163306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Load distinct all the dates&lt;/P&gt;&lt;P&gt;2. JOIN all the dimensions (cartesian product to create every combinaison possible)&lt;/P&gt;&lt;P&gt;3. Create Key to the FACT if needed.&lt;/P&gt;&lt;P&gt;4. JOIN the resulted table to the FACT table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will create rows with null values for every non-existing combinaison of the key.&lt;/P&gt;&lt;P&gt;Then the sum on null should work and return 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 14:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438048#M163306</guid>
      <dc:creator>thomduvi83</dc:creator>
      <dc:date>2012-12-14T14:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438049#M163307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any chance you could be more specific with the scripting requirements as I can't get what you've suggested to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only have one dimension (TIMESTAMP) and a set of values. (Table A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a master calendar with the field TIMESTAMP which has a row for every single date. (Table B)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have joined Table A to Table B using an outer join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My resultant data set still only consists of the dates and values from Table A, not the missing (zero value) dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 15:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438049#M163307</guid>
      <dc:creator />
      <dc:date>2012-12-14T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438050#M163308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should work...&lt;/P&gt;&lt;P&gt;Have a look at this small sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to uncheck "Suppress zero values" in your graph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 16:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438050#M163308</guid>
      <dc:creator>thomduvi83</dc:creator>
      <dc:date>2012-12-14T16:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in data gaps with zero values</title>
      <link>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438051#M163309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need a reference table with all days, and then join with your desire table, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference_Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; REF_DATE as DATE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;your_reference_file.xls&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your_Table:&lt;/P&gt;&lt;P&gt;Inner Join(Reference_Table)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Header 1] as DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Header 2] as hValues&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;your_file.xls&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;After that:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;change the missing values to "0", and then S&lt;EM&gt;upress Zero-Values &lt;/EM&gt;and try this options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ALT( hValues, 0 ) as new_hValues&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;or..&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;if(hValues='-',0,hValues) as new_hValues&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Anderson&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Dec 2013 20:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filling-in-data-gaps-with-zero-values/m-p/438051#M163309</guid>
      <dc:creator />
      <dc:date>2013-12-08T20:42:24Z</dc:date>
    </item>
  </channel>
</rss>

