<?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: Adding missing rows for missing dates to a fact without join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510287#M601733</link>
    <description>&lt;P&gt;this was my first try&lt;/P&gt;&lt;P&gt;i`m working on a very large data set, can`t use join.&lt;/P&gt;&lt;P&gt;needs to be done in one load of the source table, can be done with preceding load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 10:09:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-11-21T10:09:51Z</dc:date>
    <item>
      <title>Adding missing rows for missing dates to a fact without join</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510261#M601731</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a source table with "account", "date", "value"&lt;/P&gt;&lt;P&gt;I want to load that table and adding for each account the missing dates with empty value from &lt;STRONG&gt;his&lt;/STRONG&gt; minimum date to the &lt;STRONG&gt;maximum date in the source table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This needs to be done in one load (preceding load are ok)&lt;/P&gt;&lt;P&gt;Anyone have an idea how to do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 09:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510261#M601731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-21T09:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding missing rows for missing dates to a fact without join</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510277#M601732</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try with this:&lt;/P&gt;&lt;P&gt;Table:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;Account,&lt;BR /&gt;Date,&lt;BR /&gt;Value&lt;BR /&gt;From&amp;nbsp;&lt;BR /&gt;Source&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;Calendar:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;SPAN&gt;Account&lt;/SPAN&gt;,&lt;BR /&gt;Min(&lt;SPAN&gt;D&lt;/SPAN&gt;&lt;SPAN&gt;ate&lt;/SPAN&gt;) as DateMin,&lt;BR /&gt;Max(&lt;SPAN&gt;D&lt;/SPAN&gt;&lt;SPAN&gt;ate&lt;/SPAN&gt;) as DateMax&amp;nbsp;&lt;BR /&gt;Resident&lt;BR /&gt;Table&lt;BR /&gt;Group By&lt;BR /&gt;&lt;SPAN&gt;Account&lt;/SPAN&gt;;&lt;BR /&gt;&lt;BR /&gt;Join (Table)&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;SPAN&gt;Account&lt;/SPAN&gt;,&lt;BR /&gt;Date(iterno()+MinDate) as&amp;nbsp;Date&lt;BR /&gt;Resident&lt;BR /&gt;&lt;SPAN&gt;Calendar&lt;/SPAN&gt;&lt;BR /&gt;While iterno()+MinDate &amp;lt;= MaxDate&lt;BR /&gt;;&lt;BR /&gt;Drop Table Date;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 10:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510277#M601732</guid>
      <dc:creator>Marco</dc:creator>
      <dc:date>2018-11-21T10:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding missing rows for missing dates to a fact without join</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510287#M601733</link>
      <description>&lt;P&gt;this was my first try&lt;/P&gt;&lt;P&gt;i`m working on a very large data set, can`t use join.&lt;/P&gt;&lt;P&gt;needs to be done in one load of the source table, can be done with preceding load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 10:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510287#M601733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-21T10:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding missing rows for missing dates to a fact without join</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510302#M601734</link>
      <description>&lt;P&gt;I hope this will not take much time since we are taking resident of only two fields from main table and concatenating with main table.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Data:&lt;BR /&gt;Load&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Account &amp;amp; Date as TempKey,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Account,&lt;BR /&gt;Date,&lt;BR /&gt;Value&lt;BR /&gt;FROM Source;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Concatenate (Data)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Data:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Load * where not Exists(TempKey); &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;LOAD Account &amp;amp; date(Min -1 + IterNo(),'DD/MM/YYYY') as TempKey,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Account, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;date(Min -1 + IterNo(),'DD/MM/YYYY') as Date,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'' as Value&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;While IterNo() &amp;lt;= Max - Min +1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;LOAD Account, Max(Date) as Max, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Min(Date) as Min &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Resident Data Group By Account;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;DROP Field TempKey;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 10:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-missing-rows-for-missing-dates-to-a-fact-without-join/m-p/1510302#M601734</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-11-21T10:58:39Z</dc:date>
    </item>
  </channel>
</rss>

