<?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: Create Zero Values On Daily Records When No Activity in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085462#M644960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attachment.. it might be helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2016 10:46:50 GMT</pubDate>
    <dc:creator>PradeepReddy</dc:creator>
    <dc:date>2016-01-14T10:46:50Z</dc:date>
    <item>
      <title>Create Zero Values On Daily Records When No Activity</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085459#M644957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reporting on individual store's daily sales across a number of stores.&amp;nbsp; Besides showing each store's daily sales, I need to also show the stores that did not post any sales for that day as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is how can I show the stores with "zero" sales as I am showing sales for each store? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a following tables in the data model. The master calendar uses the functions Min(Date) and Max(Today()) functions in the script that creates a date everyday in the master calendar.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact Table&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;Store&lt;/LI&gt;&lt;LI&gt;Sales&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Master Calendar &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Date&lt;/LI&gt;&lt;LI&gt;Month&lt;/LI&gt;&lt;LI&gt;Year &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for assistance on this issue.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 21:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085459#M644957</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2016-01-13T21:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create Zero Values On Daily Records When No Activity</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085460#M644958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a script solution could be to add a record for every Store-Date without Sales (Sales null) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 21:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085460#M644958</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-01-13T21:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Zero Values On Daily Records When No Activity</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085461#M644959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maxgro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the database does not have records for the days where there are no sales for a particular store. Not sure how to evaluate each calendar day to add missing days and 'zero' sales amount for those stores that don't have sales.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 22:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085461#M644959</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2016-01-13T22:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create Zero Values On Daily Records When No Activity</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085462#M644960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the attachment.. it might be helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 10:46:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085462#M644960</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-01-14T10:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Zero Values On Daily Records When No Activity</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085463#M644961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you pradeep!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had the time to check back with the Community.&amp;nbsp; I was able to implemented the following script which is very similar to your solution.&amp;nbsp; Hopefully, you can make use of this scripting at some point.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Min&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;Date&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;MinDate&lt;/SPAN&gt;, &lt;SPAN style="color: #0433ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Today&lt;/SPAN&gt;()) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;MaxDate&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;resident&lt;/SPAN&gt; StoreData; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vMinDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('MinDate',-1,'MinMaxDate') - 1;&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vMaxDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; = &lt;SPAN style="color: #0433ff;"&gt;Peek&lt;/SPAN&gt;('MaxDate',-1,'MinMaxDate') ;&lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Drop&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Table&lt;/SPAN&gt; MinMaxDate;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;BR /&gt; '457' &lt;SPAN style="color: #0433ff;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Store&lt;/SPAN&gt;,&lt;BR /&gt; &lt;SPAN style="color: #941100;"&gt;Date&lt;/SPAN&gt;,&lt;BR /&gt; 0 &lt;SPAN style="color: #0433ff;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;[Net Sales]&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0433ff;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;recno&lt;/SPAN&gt;()+&lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;$(vMinDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;) &lt;SPAN style="color: #0433ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;Date&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;Autogenerate&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;vMaxDate&lt;/SPAN&gt; - &lt;SPAN style="color: #941100;"&gt;vMinDate&lt;/SPAN&gt;; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 20:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Zero-Values-On-Daily-Records-When-No-Activity/m-p/1085463#M644961</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2016-01-14T20:51:35Z</dc:date>
    </item>
  </channel>
</rss>

