<?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: Re: Generate values for all dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597538#M685011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My use of the DISTINCT qualifier may prevent the duplicate records from be loaded here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try maybe the attached modification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Feb 2014 15:11:51 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-02-02T15:11:51Z</dc:date>
    <item>
      <title>Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597529#M685002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First post so forgive the dumb question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data with values for for some dates, but I need to calculate a mean.&amp;nbsp; So I need to show all dates and show a zero value for the dates that have no activity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, this is what I have:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="232"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none solid solid none; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 1.5pt; border-bottom-color: white; background-color: #4f81bd;" width="68"&gt;ItemNo&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none solid solid; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 1.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #4f81bd;" width="89"&gt;DateUsed&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none none solid solid; border-bottom-width: 1.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #4f81bd;" width="75"&gt;QtyUsed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/1/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/3/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/4/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1330&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1469&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;20&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/2/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1176&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;20&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/3/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1376&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; background-color: #b8cce4;"&gt;20&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1/5/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1447&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This is what I would like my script to generate (assuming I wanted all dates between 1/1/2014-1/7/2014):&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="183"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none solid solid none; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 1.5pt; border-bottom-color: white; background-color: #4f81bd;" width="54"&gt;ItemNo&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none solid solid; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 1.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #4f81bd;" width="68"&gt;DateUsed&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none none solid solid; border-bottom-width: 1.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #4f81bd;" width="61"&gt;QtyUsed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/1/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/2/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/3/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/4/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1330&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/5/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1469&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/7/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/1/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/2/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1176&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/3/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1376&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/4/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/5/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1447&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; background-color: #dce6f1;"&gt;20&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1/7/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none none solid; border-top-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I would like to generate this data table in the script.&amp;nbsp; So far I've been able to create a calendar file which contains all dates, but I can't quite figure out how to create a record for all dates for each ItemNo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 02:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597529#M685002</guid>
      <dc:creator>nayrlloyd</dc:creator>
      <dc:date>2014-02-01T02:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597530#M685003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't a dumb question but rather complicated.&amp;nbsp; I am completely stumped as how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a few topics on it searching this site such as &lt;A href="https://community.qlik.com/thread/58059"&gt;Missing values on time dimension&lt;/A&gt;&amp;nbsp; but hopefully someone here will post an easier solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of Luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 03:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597530#M685003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-01T03:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597531#M685004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set DateFormat = 'M/D/YYYY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Load your input table&lt;/P&gt;&lt;P&gt;&lt;EM&gt;INPUT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ItemNo, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateUsed, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QtyUsed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2061" data-containertype="14" data-objectid="106041" data-objecttype="1" href="http://community.qlik.com/thread/106041"&gt;http://community.qlik.com/thread/106041&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Generate complete date table&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CALENDAR:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Date(makedate(2014)+recno()-1) as DateUsed AutoGenerate 7;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Date values per ItemNo&lt;/P&gt;&lt;P&gt;&lt;EM&gt;JOIN (CALENDAR) LOAD DISTINCT ItemNo Resident INPUT;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//complete with known QtyUsed values per date and ItemNo&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LEFT JOIN (CALENDAR) LOAD * Resident INPUT;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table INPUT;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;//Clean up (order, fill in zero values)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESULT:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ItemNo, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; DateUsed, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; rangesum(QtyUsed) as QtyUsed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident CALENDAR order by ItemNo, DateUsed;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table CALENDAR;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 09:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597531#M685004</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-01T09:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597532#M685005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET ThousandSep='.';&lt;/P&gt;&lt;P&gt;SET DecimalSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='€ #.##0,00;-€ #.##0,00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='MM/DD/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='MM/DD/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='gen;feb;mar;apr;mag;giu;lug;ago;set;ott;nov;dic';&lt;/P&gt;&lt;P&gt;SET DayNames='lun;mar;mer;gio;ven;sab;dom';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// generate date&lt;/P&gt;&lt;P&gt;Let vMinDate = num('1/1/2014');&lt;/P&gt;&lt;P&gt;Let vMaxDate = num('1/7/2014');&lt;/P&gt;&lt;P&gt;TRACE $(vMinDate) TRACE $(vMaxDate);&lt;/P&gt;&lt;P&gt;Date:&lt;/P&gt;&lt;P&gt;Load Date(recno()+$(vMinDate)-1) as DateUsed&lt;/P&gt;&lt;P&gt;Autogenerate vMaxDate - vMinDate ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// source data&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ItemNo, DateUsed, QtyUsed&lt;/P&gt;&lt;P&gt;30, 1/1/2014, 1000&lt;/P&gt;&lt;P&gt;30, 1/3/2014, 1200&lt;/P&gt;&lt;P&gt;30, 1/4/2014, 1330&lt;/P&gt;&lt;P&gt;30, 1/6/2014, 1469&lt;/P&gt;&lt;P&gt;20, 1/2/2014, 1176&lt;/P&gt;&lt;P&gt;20, 1/3/2014, 1376&lt;/P&gt;&lt;P&gt;20, 1/5/2014, 1447&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// cartesian ItemNo x Date&lt;/P&gt;&lt;P&gt;Tmp: load Distinct ItemNo Resident Source;&lt;/P&gt;&lt;P&gt;join (Date) load ItemNo Resident Tmp;&lt;/P&gt;&lt;P&gt;DROP Table Tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// join to add QtyUsed&lt;/P&gt;&lt;P&gt;Left join (Date) load ItemNo, DateUsed, QtyUsed resident Source;&lt;/P&gt;&lt;P&gt;DROP Table Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// end&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;noconcatenate load ItemNo, DateUsed, alt(QtyUsed,0) as QtyUsed Resident Date;&lt;/P&gt;&lt;P&gt;DROP Table Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 09:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597532#M685005</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-01T09:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597533#M685006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to do this is described in &lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 17:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597533#M685006</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-01T17:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597534#M685007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It similar to "Example: Populating a table with warehouse balances" within the document correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 18:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597534#M685007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-01T18:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597535#M685008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan, Try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;ItemNo, DateUsed, QtyUsed&lt;/P&gt;&lt;P&gt;30, 1/1/2014, 1000&lt;/P&gt;&lt;P&gt;30, 1/3/2014, 1200&lt;/P&gt;&lt;P&gt;30, 1/4/2014, 1330&lt;/P&gt;&lt;P&gt;30, 1/6/2014, 1469&lt;/P&gt;&lt;P&gt;20, 1/2/2014, 1176&lt;/P&gt;&lt;P&gt;20, 1/3/2014, 1376&lt;/P&gt;&lt;P&gt;20, 1/5/2014, 1447&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (Temp)&lt;/P&gt;&lt;P&gt;LOAD ItemNo , MinDate + IterNo() - 1 AS DateUsed While IterNo() &amp;lt;= MaxDate - MinDate +1 ;&lt;/P&gt;&lt;P&gt;LOAD ItemNo , Min(DateUsed) AS MinDate , Max(DateUsed) As MaxDate Resident Temp Group By ItemNo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD ItemNo ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DateUsed ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; RangeSum(QtyUsed) AS QtyUsed&lt;/P&gt;&lt;P&gt;Resident Temp ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached file for reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 19:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597535#M685008</guid>
      <dc:creator />
      <dc:date>2014-02-01T19:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597536#M685009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, thank you all for your replies.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried swuehl's solution first just b/c it was first in the list.&amp;nbsp; It worked for my sample data.&amp;nbsp; However when I applied it to my real data set I realized that I had some duplicate (but legit) values which were only being pulled in once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New example:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none solid solid none; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 1.5pt; border-bottom-color: white; background-color: #4f81bd;" width="64"&gt;ItemNo&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none solid solid; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 1.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #4f81bd;" width="64"&gt;DateUsed&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: white; font-weight: bold; font-family: Calibri; border-style: none none solid solid; border-bottom-width: 1.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #4f81bd;" width="64"&gt;UsedQty&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/1/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/3/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;30&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/4/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1330&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: yellow;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: yellow;"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: yellow;"&gt;1469&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: yellow;"&gt;30&lt;/TD&gt;&lt;TD class="xl66" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: yellow;"&gt;1/6/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: yellow;"&gt;1469&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;20&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/2/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1176&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #b8cce4;"&gt;20&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #b8cce4;"&gt;1/3/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #b8cce4;"&gt;1376&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid solid solid none; border-top-color: white; border-right-width: 0.5pt; border-right-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; background-color: #dce6f1;"&gt;20&lt;/TD&gt;&lt;TD class="xl64" style="font-size: 11pt; color: black; font-family: Calibri; border: 0.5pt solid white; background-color: #dce6f1;"&gt;1/5/2014&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-family: Calibri; border-top-width: 0.5pt; border-style: solid none solid solid; border-top-color: white; border-bottom-width: 0.5pt; border-bottom-color: white; border-left-width: 0.5pt; border-left-color: white; background-color: #dce6f1;"&gt;1447&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Notice the highlighted items. When I use swuehl's script, the table that I end up with in QV has one record for 1/6/2014 (which is what I want), but the UsedQty value is only 1469.&amp;nbsp; I need it to be twice that (2938).&amp;nbsp; I thought that the RangeSum would handle that, but I realized that the INPUT table is actually only pulling the 1469 to begin with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine that there is some small tweak that I need to make to the script, but I haven't been able to figure it out just yet.&amp;nbsp; I will also try to apply Massimo and dathu's solution - though they look very similar to swuehl's.&amp;nbsp; I will also check out the pdf which was linked by Henric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks for all of the replies.&amp;nbsp; If any of you can see quickly off hand the reason for my problem, feel free to let me know! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 07:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597536#M685009</guid>
      <dc:creator>nayrlloyd</dc:creator>
      <dc:date>2014-02-02T07:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597537#M685010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of a Table Box, make a straight table.&amp;nbsp; Use ItemNo and DateUsed as you dimensions and Sum(UsedQty) as your expression.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 08:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597537#M685010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-02T08:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597538#M685011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My use of the DISTINCT qualifier may prevent the duplicate records from be loaded here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try maybe the attached modification.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 15:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597538#M685011</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-02T15:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597539#M685012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;swuehl - I ended up using your first script example.&amp;nbsp; The DISTINCT qualifier was necessary.&amp;nbsp; Embarrassingly, the only thing that I needed to add was a GROUP BY statement on the initial data load.&amp;nbsp; Here is what I ended up with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ItemNo, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateUsed, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(QtyUsed) as QtyUsed&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;C:\DataSource.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet2)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;GROUP BY ItemNo, DateUsed;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALENDAR:&lt;/P&gt;&lt;P&gt;LOAD Date(makedate(2014)+recno()-1) as DateUsed AutoGenerate 7;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Date values per ItemNo&lt;/P&gt;&lt;P&gt;JOIN (CALENDAR) LOAD Distinct ItemNo Resident INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//DROP Table INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//complete with known QtyUsed values per date and ItemNo&lt;/P&gt;&lt;P&gt;LEFT JOIN (CALENDAR) LOAD * Resident INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Clean up&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; ItemNo,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DateUsed,&lt;/P&gt;&lt;P&gt;&amp;nbsp; RangeSum(QtyUsed) as QtyUsed&lt;/P&gt;&lt;P&gt;Resident CALENDAR&lt;/P&gt;&lt;P&gt;Order By ItemNo, DateUsed;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table CALENDAR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again to everyone for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 20:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597539#M685012</guid>
      <dc:creator>nayrlloyd</dc:creator>
      <dc:date>2014-02-03T20:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Generate values for all dates</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597540#M685013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, if you don't need the detailed QtyUsed values, you can aggregate in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 21:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-values-for-all-dates/m-p/597540#M685013</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-03T21:21:28Z</dc:date>
    </item>
  </channel>
</rss>

