<?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 Missing Months in Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152462#M29889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The image I've attached probably makes my problem evident.&lt;/P&gt;&lt;P&gt;This is one of our Sales persons who didn't have a sale from December to February.&lt;/P&gt;&lt;P&gt;My dataset from SQL only returns rows like this:&lt;/P&gt;&lt;P&gt;Date of Sale - Sales Person - Quantity Sold&lt;BR /&gt;11/01/2008 - Lindsay - 1&lt;BR /&gt;03/01/2009 - Lindsay - 1&lt;BR /&gt;03/15/2009 - Lindsay - 1&lt;BR /&gt;04/01/2009 - Lindsay - 1&lt;BR /&gt;04/01/2009 - Lindsay - 1&lt;BR /&gt;04/03/2009 - Lindsay - 1&lt;BR /&gt;04/05/2009 - Lindsay - 1&lt;BR /&gt;04/07/2009 - Lindsay - 1&lt;BR /&gt;04/11/2009 - Lindsay - 1&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I best mimic the missing months where 0 was sold?&lt;/STRONG&gt; Do I have to add something to my dataset coming from SQL? Or is there another way?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-364_sourceID:364" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Aug 2009 04:51:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-08T04:51:55Z</dc:date>
    <item>
      <title>Missing Months in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152462#M29889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The image I've attached probably makes my problem evident.&lt;/P&gt;&lt;P&gt;This is one of our Sales persons who didn't have a sale from December to February.&lt;/P&gt;&lt;P&gt;My dataset from SQL only returns rows like this:&lt;/P&gt;&lt;P&gt;Date of Sale - Sales Person - Quantity Sold&lt;BR /&gt;11/01/2008 - Lindsay - 1&lt;BR /&gt;03/01/2009 - Lindsay - 1&lt;BR /&gt;03/15/2009 - Lindsay - 1&lt;BR /&gt;04/01/2009 - Lindsay - 1&lt;BR /&gt;04/01/2009 - Lindsay - 1&lt;BR /&gt;04/03/2009 - Lindsay - 1&lt;BR /&gt;04/05/2009 - Lindsay - 1&lt;BR /&gt;04/07/2009 - Lindsay - 1&lt;BR /&gt;04/11/2009 - Lindsay - 1&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I best mimic the missing months where 0 was sold?&lt;/STRONG&gt; Do I have to add something to my dataset coming from SQL? Or is there another way?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-364_sourceID:364" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 04:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152462#M29889</guid>
      <dc:creator />
      <dc:date>2009-08-08T04:51:55Z</dc:date>
    </item>
    <item>
      <title>Missing Months in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152463#M29890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frankly, I have the same question about how to &lt;STRONG&gt;best&lt;/STRONG&gt; fill in the missing months. I'll go ahead and upload one way that works. I create a calendar disconnected from my data, and then link the two fields together like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(if("The Real Date" = "My Fake Date", "My Quantity Field))&lt;/P&gt;&lt;P&gt;I also use a calculated dimension, like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if("My Fake Date"&amp;gt;=$(=num(min("The Real Date"))) and "My Fake Date"&amp;lt;=$(=num(max("The Real Date"))),"My Fake Date")&lt;/P&gt;&lt;P&gt;On the presentation tab, make sure you don't suppress zero values. Do suppress the dimension when value is null. The problems with this approach are complexity and performance. On reports for large data sets, it slows to a crawl.&lt;/P&gt;&lt;P&gt;Hopefully there's a better solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 05:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152463#M29890</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-08T05:13:19Z</dc:date>
    </item>
    <item>
      <title>Missing Months in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152464#M29891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you may choose "continuous" as x-Axis, thus for each month between the first and the last activitiy there will be one entry on the x-axis. Would also propose, not to use lines, but bars in this case, as a line always gives the impression, that you might interpolate betw two intervals.&lt;/P&gt;&lt;P&gt;Problem in this solution is, that if you wish to show some 0-values as starter or end of an interval - in such case then the solution with a "shadow-table" is more adequate.&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 03:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152464#M29891</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-08-09T03:29:10Z</dc:date>
    </item>
    <item>
      <title>Missing Months in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152465#M29892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be always good, if you can create a separate calendar table, and relate it with your sales table using the date field. See the data model of the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2009 20:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152465#M29892</guid>
      <dc:creator />
      <dc:date>2009-08-09T20:18:09Z</dc:date>
    </item>
    <item>
      <title>Missing Months in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152466#M29893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone for your advice.&lt;/P&gt;&lt;P&gt;I tried to use continous x-axis, but that did not seem to help. It simply didn't know that my x-axis was MONTHS, and couldn't fill in the missing pattern, I guess.&lt;/P&gt;&lt;P&gt;Connecting my table to a seperate calendar got too complex for me.&lt;/P&gt;&lt;P&gt;I believe I will somehow fake the data in the dataset coming back from SQL. So that my dataset will look like:&lt;/P&gt;&lt;P&gt;Date of Sale - Sales Person - Quantity Sold&lt;BR /&gt;11/01/2008 - Lindsay - 1&lt;BR /&gt;12/01/2008 - Lindsay - 0&lt;BR /&gt;01/01/2009 - Lindsay - 0&lt;BR /&gt;02/01/2009 - Lindsay - 0&lt;BR /&gt;03/01/2009 - Lindsay - 1&lt;BR /&gt;03/15/2009 - Lindsay - 1&lt;BR /&gt;04/01/2009 - Lindsay - 1&lt;BR /&gt;04/01/2009 - Lindsay - 1&lt;BR /&gt;04/03/2009 - Lindsay - 1&lt;BR /&gt;04/05/2009 - Lindsay - 1&lt;BR /&gt;04/07/2009 - Lindsay - 1&lt;BR /&gt;04/11/2009 - Lindsay - 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2009 04:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152466#M29893</guid>
      <dc:creator />
      <dc:date>2009-08-11T04:54:14Z</dc:date>
    </item>
    <item>
      <title>Missing Months in Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152467#M29894</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;I was able to achieve the required result using the following approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create an inline load of all the months&lt;BR /&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DateofSale1&lt;/STRONG&gt;, &lt;STRONG&gt;MonthName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;01/01/2009, Jan&lt;/P&gt;&lt;P&gt;02/01/2009, Feb&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For showing months select the dimension &lt;STRONG&gt;DateofSale1 - &lt;/STRONG&gt;instead of your original DateofSale field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. For calculating the QuantitySold - use expression&amp;nbsp; &lt;/P&gt;&lt;P&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; sum(if(DateofSale = DateofSale1, Quantity Sold))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample formula would work if your DateofSale is first of the month as per the inline &lt;STRONG&gt;DateofSale1 &lt;/STRONG&gt;structure. For your dataset you might have to add condition to compare the year and month.&lt;/P&gt;&lt;P&gt;Also on the presentation tab, make sure you don't suppress zero values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 06:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Missing-Months-in-Chart/m-p/152467#M29894</guid>
      <dc:creator />
      <dc:date>2011-10-14T06:43:39Z</dc:date>
    </item>
  </channel>
</rss>

