<?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 Create table in load and fill columns with values from existing tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-table-in-load-and-fill-columns-with-values-from-existing/m-p/1764486#M59113</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am struggling how to do this. I have a Forecast Table with&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Forecast Cycle (2020-M03)&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Year Month&lt;/P&gt;&lt;P&gt;(A forecast Cycle will forecast for 24months in future)&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Customer Group&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Forecast&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sales table with&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year Month&lt;/TD&gt;&lt;TD&gt;Customer Group&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a final table comparing&amp;nbsp; the Sales minus Forecast For each Year month Product Customer group combination.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month Year&lt;/TD&gt;&lt;TD&gt;Product id&lt;/TD&gt;&lt;TD&gt;Customer Group&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;Forecast-1&lt;/TD&gt;&lt;TD&gt;Forecast-2 etc&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Final Table i want 12 columns (Forecast -x) and in those i want to populate;&lt;/P&gt;&lt;P&gt;For the current row where Month Year = 2020-01 I want the column Forecast-1 so be populate with the Sum of the value forecasted in the cycle of Month year -1 for that MonthYear and its Product/Group combination. and so on for the Forecast Cycle of Month year -2.&lt;/P&gt;&lt;P&gt;i.e if looking at 2020-03 year month; in Forecast -1 i expect to see the value of that was forecast in 2020-02 version but for the month 2020-03&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am really struggling here; i have tried to pivot the Forecast data so that it is also on month year level.&lt;/P&gt;&lt;P&gt;I am thinking a for loop is needed here but i am very weak in this area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lara&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:46:34 GMT</pubDate>
    <dc:creator>leivers1</dc:creator>
    <dc:date>2024-11-16T17:46:34Z</dc:date>
    <item>
      <title>Create table in load and fill columns with values from existing tables</title>
      <link>https://community.qlik.com/t5/App-Development/Create-table-in-load-and-fill-columns-with-values-from-existing/m-p/1764486#M59113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am struggling how to do this. I have a Forecast Table with&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Forecast Cycle (2020-M03)&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Year Month&lt;/P&gt;&lt;P&gt;(A forecast Cycle will forecast for 24months in future)&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Customer Group&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Forecast&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sales table with&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year Month&lt;/TD&gt;&lt;TD&gt;Customer Group&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a final table comparing&amp;nbsp; the Sales minus Forecast For each Year month Product Customer group combination.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month Year&lt;/TD&gt;&lt;TD&gt;Product id&lt;/TD&gt;&lt;TD&gt;Customer Group&lt;/TD&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;Forecast-1&lt;/TD&gt;&lt;TD&gt;Forecast-2 etc&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Final Table i want 12 columns (Forecast -x) and in those i want to populate;&lt;/P&gt;&lt;P&gt;For the current row where Month Year = 2020-01 I want the column Forecast-1 so be populate with the Sum of the value forecasted in the cycle of Month year -1 for that MonthYear and its Product/Group combination. and so on for the Forecast Cycle of Month year -2.&lt;/P&gt;&lt;P&gt;i.e if looking at 2020-03 year month; in Forecast -1 i expect to see the value of that was forecast in 2020-02 version but for the month 2020-03&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am really struggling here; i have tried to pivot the Forecast data so that it is also on month year level.&lt;/P&gt;&lt;P&gt;I am thinking a for loop is needed here but i am very weak in this area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lara&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-table-in-load-and-fill-columns-with-values-from-existing/m-p/1764486#M59113</guid>
      <dc:creator>leivers1</dc:creator>
      <dc:date>2024-11-16T17:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create table in load and fill columns with values from existing tables</title>
      <link>https://community.qlik.com/t5/App-Development/Create-table-in-load-and-fill-columns-with-values-from-existing/m-p/1764516#M59114</link>
      <description>&lt;P&gt;Check Henric's&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Generic-Load/ba-p/1473470" target="_self"&gt;Generic Load&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 22:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-table-in-load-and-fill-columns-with-values-from-existing/m-p/1764516#M59114</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-11-25T22:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create table in load and fill columns with values from existing tables</title>
      <link>https://community.qlik.com/t5/App-Development/Create-table-in-load-and-fill-columns-with-values-from-existing/m-p/1764801#M59132</link>
      <description>&lt;P&gt;Thanks so much for your quick reply. i think&amp;nbsp; now have my data in the correct format (below) where i have my sales and the forecast values together by year month.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leivers1_0-1606416684417.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44894iA845556118BB8E92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leivers1_0-1606416684417.png" alt="leivers1_0-1606416684417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But how can i create and populate new columns Forecast -1,-2 etc. using this new table.&lt;/P&gt;&lt;P&gt;I want; that if the row's Year month value is 2020-03; then i want to populate the column "Forecast-1" with the value in the column "2020-02" for that row and repeat this for the row; up until Forecast -12.&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 18:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-table-in-load-and-fill-columns-with-values-from-existing/m-p/1764801#M59132</guid>
      <dc:creator>leivers1</dc:creator>
      <dc:date>2020-11-26T18:55:20Z</dc:date>
    </item>
  </channel>
</rss>

