<?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: Creating a new table with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337551#M823659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this: &lt;A href="https://community.qlik.com/qlik-blogpost/3629"&gt;The Generic Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15004913251729517" jivemacro_uid="_15004913251729517"&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;//Load ID,Date,Sum(Sales) as AggrSales;&lt;/P&gt;
&lt;P&gt;LOAD * Inline&lt;/P&gt;
&lt;P&gt;[ID,Date,Sales&lt;/P&gt;
&lt;P&gt;1,1/1/2017,1&lt;/P&gt;
&lt;P&gt;1,1/1/2017,1&lt;/P&gt;
&lt;P&gt;1,1/2/2017,1&lt;/P&gt;
&lt;P&gt;1,1/2/2017,1&lt;/P&gt;
&lt;P&gt;1,1/3/2017,1&lt;/P&gt;
&lt;P&gt;2,1/1/2017,1&lt;/P&gt;
&lt;P&gt;2,1/2/2017,1&lt;/P&gt;
&lt;P&gt;2,1/2/2017,1];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;//Sales Aggregate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;AggrTable:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;load ID,Date,Sum(Sales) as AggrSales Resident Table&lt;/P&gt;
&lt;P&gt;group by ID,Date;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Generic load ID,Date,Sales Resident Table;&lt;/P&gt;
&lt;P&gt;drop Table Table;&lt;/P&gt;
&lt;P&gt;Generic load ID,Date,AggrSales Resident AggrTable;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this method will create multiple tables for each date which you may want to combine. &lt;/P&gt;&lt;P&gt;Not sure if there are other ways to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2017 19:10:40 GMT</pubDate>
    <dc:creator>manas_bn</dc:creator>
    <dc:date>2017-07-19T19:10:40Z</dc:date>
    <item>
      <title>Creating a new table with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337549#M823657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am wanting to create a table within Qlik, something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/170778_chart.PNG" style="width: 620px; height: 78px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With data that looks something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/170779_chart1.PNG" style="width: 620px; height: 237px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each area, I want it to show Processed and WIP. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337549#M823657</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new table with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337550#M823658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be useful&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3786"&gt;Generating Missing Data In QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 17:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337550#M823658</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-07-19T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new table with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337551#M823659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this: &lt;A href="https://community.qlik.com/qlik-blogpost/3629"&gt;The Generic Load&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15004913251729517" jivemacro_uid="_15004913251729517"&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;//Load ID,Date,Sum(Sales) as AggrSales;&lt;/P&gt;
&lt;P&gt;LOAD * Inline&lt;/P&gt;
&lt;P&gt;[ID,Date,Sales&lt;/P&gt;
&lt;P&gt;1,1/1/2017,1&lt;/P&gt;
&lt;P&gt;1,1/1/2017,1&lt;/P&gt;
&lt;P&gt;1,1/2/2017,1&lt;/P&gt;
&lt;P&gt;1,1/2/2017,1&lt;/P&gt;
&lt;P&gt;1,1/3/2017,1&lt;/P&gt;
&lt;P&gt;2,1/1/2017,1&lt;/P&gt;
&lt;P&gt;2,1/2/2017,1&lt;/P&gt;
&lt;P&gt;2,1/2/2017,1];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;//Sales Aggregate&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;AggrTable:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;load ID,Date,Sum(Sales) as AggrSales Resident Table&lt;/P&gt;
&lt;P&gt;group by ID,Date;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Generic load ID,Date,Sales Resident Table;&lt;/P&gt;
&lt;P&gt;drop Table Table;&lt;/P&gt;
&lt;P&gt;Generic load ID,Date,AggrSales Resident AggrTable;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this method will create multiple tables for each date which you may want to combine. &lt;/P&gt;&lt;P&gt;Not sure if there are other ways to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337551#M823659</guid>
      <dc:creator>manas_bn</dc:creator>
      <dc:date>2017-07-19T19:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new table with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337552#M823660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This piece of code worked in combining all the different generic tables into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15004921904437500" jivemacro_uid="_15004921904437500"&gt;
&lt;P&gt;FOR i = NoOfTables()-1 to 0 STEP -1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vTable=TableName($(i));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF WildMatch('$(vTable)', 'AggrTable-1.*') THEN&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEFT JOIN (AggrTable) LOAD * RESIDENT&amp;nbsp;&amp;nbsp;&amp;nbsp; [$(vTable)];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DROP TABLE&amp;nbsp; [$(vTable)];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ENDIF&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But note that in the front end, you will have to figure out a way for dynamically changing columns whenever a new date is added to the data set.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="genericload.PNG" class="jive-image image-1" height="102" src="https://community.qlik.com/legacyfs/online/170798_genericload.PNG" style="height: 102.122px; width: 329px;" width="329" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-new-table-with-dates/m-p/1337552#M823660</guid>
      <dc:creator>manas_bn</dc:creator>
      <dc:date>2017-07-19T19:30:01Z</dc:date>
    </item>
  </channel>
</rss>

