<?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: Dynamically adding current week snapshot to an archive in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamically-adding-current-week-snapshot-to-an-archive/m-p/2162313#M94344</link>
    <description>&lt;P&gt;I also have an alternative using with Applymap() in my mind, but explaining it over text will be too lengthy.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rohan.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 09:02:42 GMT</pubDate>
    <dc:creator>Rohan</dc:creator>
    <dc:date>2024-01-17T09:02:42Z</dc:date>
    <item>
      <title>Dynamically adding current week snapshot to an archive</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-adding-current-week-snapshot-to-an-archive/m-p/2161707#M94281</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Struggling to achieve my goal, may need your insights! Here's the case :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On &lt;LI-PRODUCT title="Qlik Sense Business" id="qlikSenseBusiness"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;in the data load editor (script)&amp;nbsp;I have an inventory table, which always reflect today's picture (currently we are on week 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create an archive of the inventory table with 1 column = 1 week, so each new week = +1 column&lt;/P&gt;
&lt;P&gt;So besides the key (which is my products) there are only columns that are Week numbers.&lt;/P&gt;
&lt;P&gt;Maybe that's more easy to explain with this example :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tarteflambee_0-1705332460539.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127090i3B5B5EE0F1DAEA19/image-size/large?v=v2&amp;amp;px=999" role="button" title="tarteflambee_0-1705332460539.png" alt="tarteflambee_0-1705332460539.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The reason I want all the week of the year as column (even if only null values because it's the future) is that I'm displaying the full table on the user interface with the option to hide all the null() columns. So whenever a new week is filled on the archive, it's displayed on user interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I've tried :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concatenate -&amp;gt; Got duplicates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More details if you're curious/need more information :&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;P&gt;My application goal is to display the rolling 5 past week of inventory. To compare the versus. [W2 vs W1], [W3 vs W2], [W4 vs W3] etc... But I'll be creating another sheet displaying archive data. I'm stuck on that blocking point.&lt;/P&gt;
&lt;P&gt;My criteria's for the archive are :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- If there's a new key (product) -&amp;gt; new line&lt;/P&gt;
&lt;P&gt;- If for any reason there's more than 1 week missing to the archive, fill all the missing columns on the archive.&lt;/P&gt;
&lt;P&gt;- Should be dynamic, I'll be running this everyday&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot if you help me to crack this up...&lt;/P&gt;
&lt;P&gt;TF&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 15:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-adding-current-week-snapshot-to-an-archive/m-p/2161707#M94281</guid>
      <dc:creator>tarteflambee</dc:creator>
      <dc:date>2024-01-15T15:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically adding current week snapshot to an archive</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-adding-current-week-snapshot-to-an-archive/m-p/2162312#M94343</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/148744"&gt;@tarteflambee&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;have you tried to Outerjoin the Weekly increment into your Acrhieve qvd ? Something like :&lt;/P&gt;
&lt;P&gt;Table :&lt;/P&gt;
&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Key,&lt;/P&gt;
&lt;P&gt;Week1,&lt;/P&gt;
&lt;P&gt;Week2,&lt;/P&gt;
&lt;P&gt;.. WeekN&lt;/P&gt;
&lt;P&gt;From [Archieve.qvd];&lt;/P&gt;
&lt;P&gt;Outer Join(Table)&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Key,&lt;/P&gt;
&lt;P&gt;WeekN+1&lt;/P&gt;
&lt;P&gt;From[New Week.qvd];&lt;/P&gt;
&lt;P&gt;store Table into&amp;nbsp;[Archieve.qvd](qvd);&lt;/P&gt;
&lt;P&gt;drop table Table;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe this will resolve the blocker that you are facing. You will have to streamline this idea into your use case with a little tinkering, I believe. Do let me know if it worked out or not.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rohan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 09:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-adding-current-week-snapshot-to-an-archive/m-p/2162312#M94343</guid>
      <dc:creator>Rohan</dc:creator>
      <dc:date>2024-01-17T09:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically adding current week snapshot to an archive</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-adding-current-week-snapshot-to-an-archive/m-p/2162313#M94344</link>
      <description>&lt;P&gt;I also have an alternative using with Applymap() in my mind, but explaining it over text will be too lengthy.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rohan.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 09:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-adding-current-week-snapshot-to-an-archive/m-p/2162313#M94344</guid>
      <dc:creator>Rohan</dc:creator>
      <dc:date>2024-01-17T09:02:42Z</dc:date>
    </item>
  </channel>
</rss>

