<?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: Issue creating rolling forecast table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535503#M108530</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/342059"&gt;@Daniel_Castella&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The issue got a bit complex after throwing in some additional dimensions in those two tables. Could you please review the attached file and suggest how should I achieve the same output with these fresh set of fields in the input tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BS&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Nov 2025 13:30:01 GMT</pubDate>
    <dc:creator>bsharma_velcro</dc:creator>
    <dc:date>2025-11-06T13:30:01Z</dc:date>
    <item>
      <title>Issue creating rolling forecast table</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2534566#M108403</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create a table like below, where &lt;STRONG&gt;Actuals&lt;/STRONG&gt; and &lt;STRONG&gt;Forecasts&lt;/STRONG&gt; are shown in the same table. Users will be able to compare forecasts made in different months with the Actual numbers and compare which of the multiple forecasts was more accurate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bsharma_velcro_0-1761651231119.png" style="width: 660px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184513i433D930FC3B8A10F/image-dimensions/660x261?v=v2" width="660" height="261" role="button" title="bsharma_velcro_0-1761651231119.png" alt="bsharma_velcro_0-1761651231119.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help with how to build the model to achieve this. I have attached sample data used in creating this table.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BS&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 11:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2534566#M108403</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2025-10-28T11:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating rolling forecast table</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2534591#M108404</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got the output doing the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BACKEND:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;A:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Forecast Creation Month" ,&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Forecast Value"&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FROM [lib://DataFiles/Rolling FC.xlsx]&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;(ooxml, embedded labels, table is Forecast)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Where Year("Forecast For Month")='2025';&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;B:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Actual&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FROM [lib://DataFiles/Rolling FC.xlsx]&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;(ooxml, embedded labels, table is Actual);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;C:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;NoConcatenate&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD "Forecast Creation Month"&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT A;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Outer Join (C)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Month" as "Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Actual&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT B;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;TempMax:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD AddMonths(Max(Month),1) as Month&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT B&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Where len(Actual)&amp;gt;0;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LET vMaxMonth = Peek('Month', 0, 'TempMax');&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;DROP TABLE TempMax;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Concatenate (A)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD *&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT C;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;E:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;NoConcatenate&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD *&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT A&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Where "Forecast Creation Month"&amp;lt;='$(vMaxMonth)';&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;DROP TABLE A, B, C;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FRONT END:&lt;/P&gt;
&lt;P&gt;Pivot table with&lt;/P&gt;
&lt;P&gt;-Row: &lt;FONT size="2" color="#808080"&gt;[Forecast Creation Month]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Column:&amp;nbsp;&lt;FONT size="2" color="#808080"&gt;[Forecast For Month]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Measure:&amp;nbsp;&lt;FONT size="2" color="#808080"&gt;IF([Forecast Creation Month]&amp;lt;=[Forecast For Month],Sum([Forecast Value]),Sum(Distinct Actual))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;-Background Color expression:&amp;nbsp;&lt;FONT size="2" color="#808080"&gt;IF([Forecast Creation Month]&amp;lt;=[Forecast For Month], RGB(100,100,255), RGB(255,255,0))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it works for you. The colors are not exactly the same, but you can adjust it with the RGB numbers. Note also that, since the last two rows in your output are empty, they will not appear in Qlik Sense table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&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="DanielC_0-1761663239068.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184516i1BD2A1DAC2C73F55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielC_0-1761663239068.png" alt="DanielC_0-1761663239068.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 15:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2534591#M108404</guid>
      <dc:creator>Daniel_Castella</dc:creator>
      <dc:date>2025-10-28T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating rolling forecast table</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2534608#M108405</link>
      <description>&lt;P&gt;Thanks Daniel. This is working as expected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BS&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 15:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2534608#M108405</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2025-10-28T15:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating rolling forecast table</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535503#M108530</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/342059"&gt;@Daniel_Castella&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The issue got a bit complex after throwing in some additional dimensions in those two tables. Could you please review the attached file and suggest how should I achieve the same output with these fresh set of fields in the input tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BS&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 13:30:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535503#M108530</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2025-11-06T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating rolling forecast table</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535528#M108531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/306088"&gt;@bsharma_velcro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this code. If I did it correctly, you should be able to use the same FrontEnd Pivot Table that I posted in the other solution without needing to modify it.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;A:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Date(Date#(Month("Forecast Date")&amp;amp;'-'&amp;amp;Year("Forecast Date"), 'MMM-YYYY'), 'MMM-YYYY') as "Forecast Creation Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Date(Date#(pick(Month,'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec')&amp;amp;'-'&amp;amp;"Year", 'MMM-YYYY'), 'MMM-YYYY') as "Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Forecast&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FROM [lib://DataFiles/Data and Output.xlsx]&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;(ooxml, embedded labels, table is Forecast);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;B1:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Date(Date#(Month("Transaction Date")&amp;amp;'-'&amp;amp;Year("Transaction Date"), 'MMM-YYYY'), 'MMM-YYYY') as "Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Actual&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FROM [lib://DataFiles/Data and Output.xlsx]&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;(ooxml, embedded labels, table is Actual);&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;B:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;NoConcatenate&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;sum(Actual) as Actual&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT B1&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;GROUP BY "Forecast For Month";&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;DROP TABLE B1;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;C:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;NoConcatenate&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD "Forecast Creation Month"&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT A;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Outer Join (C)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Actual&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT B;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;TempMax:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD AddMonths(Max("Forecast For Month"),1) as "Month"&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT B&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Where len(Actual)&amp;gt;0;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LET vMaxMonth = Peek('Month', 0, 'TempMax');&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;DROP TABLE TempMax;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Concatenate (A)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD *&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT C;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;E:&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;NoConcatenate&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD "Forecast Creation Month" ,&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;"Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;If("Forecast Creation Month"&amp;lt;='$(vMaxMonth)',"Forecast",'-') as "Forecast",&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;If("Forecast Creation Month"&amp;lt;='$(vMaxMonth)',"Actual",'-') as "Actual"&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT A&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Where "Forecast Creation Month"&amp;lt;='$(vMaxMonth)';&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;DROP TABLE A, B, C;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With it I obtain the following table. Let me know if it works for you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daniel_Castella_0-1762446979634.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/184863i1F5A5F78C6CAC770/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daniel_Castella_0-1762446979634.png" alt="Daniel_Castella_0-1762446979634.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 16:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535528#M108531</guid>
      <dc:creator>Daniel_Castella</dc:creator>
      <dc:date>2025-11-06T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating rolling forecast table</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535534#M108532</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/342059"&gt;@Daniel_Castella&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I have a concern regarding the measure:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Measure:&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="2" color="#808080"&gt;IF([Forecast Creation Month]&amp;lt;=[Forecast For Month],Sum([Forecast Value]),Sum(Distinct Actual))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Will using &lt;STRONG&gt;Distinct&lt;/STRONG&gt;&amp;nbsp;while summing up Actual not create issue if we have same Actual numbers repeating multiple times in the data? Will it not impact the outcome by reducing the total for Actuals?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 17:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535534#M108532</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2025-11-06T17:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating rolling forecast table</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535535#M108533</link>
      <description>&lt;P&gt;Also, it won't allow me to apply filter by dimensions like Item, Area and Account codes.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 17:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535535#M108533</guid>
      <dc:creator>bsharma_velcro</dc:creator>
      <dc:date>2025-11-06T17:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue creating rolling forecast table</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535641#M108545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/306088"&gt;@bsharma_velcro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, it was not specified that the chart needed to react to the fields but seems reasonable. I have improved the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;A:&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; Date(Date#(Month("Forecast Date")&amp;amp;'-'&amp;amp;Year("Forecast Date"), 'MMM-YYYY'), 'MMM-YYYY') as "Forecast Creation Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Date(Date#(pick(Month,'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec')&amp;amp;'-'&amp;amp;"Year", 'MMM-YYYY'), 'MMM-YYYY') as "Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Forecast&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FROM [lib://DataFiles/Data and Output.xlsx]&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;(ooxml, embedded labels, table is Forecast);&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;B1:&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Date(Date#(Month("Transaction Date")&amp;amp;'-'&amp;amp;Year("Transaction Date"), 'MMM-YYYY'), 'MMM-YYYY') as "Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Actual&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;FROM [lib://DataFiles/Data and Output.xlsx]&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;(ooxml, embedded labels, table is Actual);&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;B:&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;NoConcatenate&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; Sum(Actual) as Actual&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT B1&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;GROUP BY "Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"Forecast For Month";&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;DROP TABLE B1;&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;C:&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;NoConcatenate&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD Distinct "Forecast Creation Month"&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT A;&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Outer Join (C)&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD &lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Actual&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT B;&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;TempMax:&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD AddMonths(Max("Forecast For Month"),1) as "Month"&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT B&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Where len(Actual)&amp;gt;0;&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LET vMaxMonth = Peek('Month', 0, 'TempMax');&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;DROP TABLE TempMax;&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Concatenate (A)&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD *&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT C&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Where "Forecast Creation Month"&amp;gt;"Forecast For Month";&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;E:&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;NoConcatenate&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;LOAD &lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Forecast Creation Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Forecast For Month",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Item Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Area Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; "Account Code",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If("Forecast Creation Month"&amp;lt;='$(vMaxMonth)',"Forecast",'-') as "Forecast",&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If("Forecast Creation Month"&amp;lt;='$(vMaxMonth)',"Actual",'-') as "Actual"&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;RESIDENT A&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Where "Forecast Creation Month"&amp;lt;='$(vMaxMonth)';&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;DROP TABLE A, B, C;&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, in the pivot table you need to change the measure to this expression:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;IF([Forecast Creation Month]&amp;lt;=[Forecast For Month],Sum([Forecast]),Sum(TOTAL&amp;lt;[Forecast For Month]&amp;gt; Actual)/&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2" color="#808080"&gt;Count(TOTAL &amp;lt;[Forecast For Month]&amp;gt; Distinct If([Forecast Creation Month]&amp;gt;[Forecast For Month],[Forecast Creation Month])))&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will make the values to react to the fields' selection. Moreover, I deleted that Sum Distinct that could cause issues (I know there is a Count Distinct now, but it is just a month counter needed to avoid counting duplicates caused by the months join).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 14:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-creating-rolling-forecast-table/m-p/2535641#M108545</guid>
      <dc:creator>Daniel_Castella</dc:creator>
      <dc:date>2025-11-07T14:40:27Z</dc:date>
    </item>
  </channel>
</rss>

