<?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: Extend table with values in between in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1926872#M76326</link>
    <description>&lt;P&gt;Funktioniert nun.&lt;BR /&gt;Das Problem war, dass Nulleinträge für vMinDate oder vMaxDate zu Fehler geführt haben.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 12:30:20 GMT</pubDate>
    <dc:creator>Loading_Screen</dc:creator>
    <dc:date>2022-05-05T12:30:20Z</dc:date>
    <item>
      <title>Extend table with values in between</title>
      <link>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1925159#M76140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have the following aggregated table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Loading_Screen_0-1651496326011.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78438i88BA04D0D0FD033F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Loading_Screen_0-1651496326011.png" alt="Loading_Screen_0-1651496326011.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Loading_Screen_1-1651496516453.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78439iC7AEB95A88459547/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Loading_Screen_1-1651496516453.png" alt="Loading_Screen_1-1651496516453.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to expand this table such that for each different "I_key" (so for each PO number) the not existing dates in "Date_Ver_Abt" are filled up with the last value from "Ver_Abt".&lt;BR /&gt;&lt;BR /&gt;For example PO 593 has 2 entries for the 27.04.2022. That is fine. Now the 28.04.2022 has no entry for PO 593 so I want to add a line with PO-592, 28.04.2022 PPS (since PPS was the last statement from the previous day 27.04.2022).&lt;BR /&gt;Analogue if multiple entries are missing.&lt;BR /&gt;I want to fill up the table until the current date.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any ideas how I can achieve that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 13:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1925159#M76140</guid>
      <dc:creator>Loading_Screen</dc:creator>
      <dc:date>2022-05-02T13:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extend table with values in between</title>
      <link>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1926381#M76285</link>
      <description>&lt;P&gt;I found some solution but not through the whole process.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I now use the following code:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;for i = 570 to 575 step 1&lt;BR /&gt;Verantw_Abt$(i):&lt;BR /&gt;//Noconcatenate&lt;BR /&gt;Load&lt;BR /&gt;I_key,&lt;BR /&gt;H_created_qlik_date_PO_History as Date_Ver_Abt,&lt;BR /&gt;H_toString_PO_History as Ver_Abt&lt;BR /&gt;Resident PO_History&lt;BR /&gt;where [I_key] = 'PO-' &amp;amp; $(i) &lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;MinMaxDate$(i):&lt;BR /&gt;Load Min(Date_Ver_Abt) as MinDate_, Max(Date_Ver_Abt) as MaxDate_ resident Verantw_Abt$(i);&lt;BR /&gt;Let vMinDate = Peek('MinDate_',-1,'MinMaxDate')-1;&lt;BR /&gt;Let vMaxDate = Peek('MaxDate_',-1,'MinMaxDate') ;&lt;BR /&gt;Drop Table MinMaxDate$(i);&lt;BR /&gt;Join(Verantw_Abt$(i))&lt;BR /&gt;Load Date(RecNo()+$(vMinDate)) as Date_Ver_Abt &lt;BR /&gt;AutoGenerate vMaxDate - vMinDate;&lt;/P&gt;
&lt;P&gt;Verantw_Abt_extended$(i):&lt;BR /&gt;NoConcatenate Load Date_Ver_Abt,&lt;BR /&gt;If(IsNull(Ver_Abt),Peek(Ver_Abt),Ver_Abt) as Ver_Abt&lt;BR /&gt;//If(IsNull(I_key),Peek(I_key)),I_key) as I_key&lt;BR /&gt;Resident Verantw_Abt$(i)&lt;BR /&gt;Order By Date_Ver_Abt; //So that above values can propagate down&lt;BR /&gt;Drop Table Verantw_Abt$(i);&lt;/P&gt;
&lt;P&gt;Prod$(i):&lt;BR /&gt;Load &lt;BR /&gt;Date_Ver_Abt as Date_Ver_Abt_new, &lt;BR /&gt;Ver_Abt as Ver_Abt_new,&lt;BR /&gt;'PO-'&amp;amp;$(i) as I_key&lt;BR /&gt;resident Verantw_Abt_extended$(i)&lt;BR /&gt;;&lt;BR /&gt;Drop table Verantw_Abt_extended$(i);&lt;BR /&gt;//next i&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;If I don't run the for loop more than one time it works for one PO.&lt;BR /&gt;However, if I use the for loop it gives the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Loading_Screen_0-1651676825277.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78659i88A0FCB6848C6C4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Loading_Screen_0-1651676825277.png" alt="Loading_Screen_0-1651676825277.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't figure out what the problem is.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for i =570 the output is fine and looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Loading_Screen_1-1651676915864.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78662iA076C5FA2E809E5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Loading_Screen_1-1651676915864.png" alt="Loading_Screen_1-1651676915864.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;and so on.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1926381#M76285</guid>
      <dc:creator>Loading_Screen</dc:creator>
      <dc:date>2022-05-04T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extend table with values in between</title>
      <link>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1926872#M76326</link>
      <description>&lt;P&gt;Funktioniert nun.&lt;BR /&gt;Das Problem war, dass Nulleinträge für vMinDate oder vMaxDate zu Fehler geführt haben.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 12:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1926872#M76326</guid>
      <dc:creator>Loading_Screen</dc:creator>
      <dc:date>2022-05-05T12:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extend table with values in between</title>
      <link>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1927172#M76350</link>
      <description>&lt;P&gt;And in English:&lt;BR /&gt;It works now.&lt;BR /&gt;Null values for vMinDate and vMaxDate created an error for the calculation of Recno() + nullvalue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Topic here can be closed&lt;BR /&gt;Unfortunate that I did not get any outside help.^^&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 06:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Extend-table-with-values-in-between/m-p/1927172#M76350</guid>
      <dc:creator>Loading_Screen</dc:creator>
      <dc:date>2022-05-06T06:50:41Z</dc:date>
    </item>
  </channel>
</rss>

