<?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: Create Rolling Dimensions in As of Tables in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2481787#M100867</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/106549"&gt;@EugeniaCastilla&lt;/a&gt;&amp;nbsp; see the below article&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Rolling-N-months/ta-p/1484325" target="_blank"&gt;https://community.qlik.com/t5/Member-Articles/Rolling-N-months/ta-p/1484325&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 12:38:28 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-09-16T12:38:28Z</dc:date>
    <item>
      <title>Create Rolling Dimensions in As of Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2480419#M100706</link>
      <description>&lt;P&gt;Hey all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am in need of serious help. I created an As of Calendar following the approach:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But it is not giving me exactly what I need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to visualize in a chart the Rolling Quarters based on the selection of a filter Month-Year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If for example the user selects Jul 2024. the chart should show:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q-Jul-2024 (sum of May 2024, June 2024 and July 2024).&lt;/P&gt;
&lt;P&gt;Q-Apr-2024 (sum of Febr 2024, March 2024, April 2024)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Q - Jan 2024 (sum of Nov 2023, Dic 2024, Jan 2024)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And so on, up to 12 quarters maximum.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the code I am working with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MasterCalendar:
LOAD
    AñoMes,
    MonthRolling,
    Año,
    Mes,
    MesNum
FROM [lib://conexion_prueba_eugenia (asclepio_e.castilla)/prueba/CalendarioIQVIA.qvd]
(qvd);

// ======== Create a list of distinct Months ========
tmpAsOfCalendar:
Load distinct AñoMes as Month
  Resident [MasterCalendar] ;

// ======== Cartesian product with itself ========
Join (tmpAsOfCalendar)
Load Month as AsOfMonth
  Resident tmpAsOfCalendar ;

// ======== Reload, filter and calculate additional fields ========
[As-Of Calendar]:
Load Month as AsOfMonth,
  AsOfMonth as MonthRolling,
  Round((AsOfMonth-Month)*12/365.2425) as MonthDiff,
  Year(AsOfMonth)-Year(Month) as YearDiff
  Resident tmpAsOfCalendar
      Where AsOfMonth &amp;gt;= Month
      order by Month DESC, AsOfMonth DESC;

Drop Table tmpAsOfCalendar;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp; I can't for the life of me create the RollingQuarter Dimensions. I have tried to play with the IterNo() &amp;lt;= 3 but nothing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help please!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 20:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2480419#M100706</guid>
      <dc:creator>EugeniaCastilla</dc:creator>
      <dc:date>2024-11-15T20:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create Rolling Dimensions in As of Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2480667#M100733</link>
      <description>&lt;P&gt;I usually do all my date stuff in SQL to give rolling months&amp;nbsp; quarters etc. if a dynamic solution isn't needed ( i.e. user filters on month 9, filter grabs preceding months to return July/August/September also ) .&lt;/P&gt;
&lt;P&gt;Something that might be worth exploring is something Ometis made over here, which creates a time-aware calendar based on an input date table -&amp;nbsp; you could use this for prior quarters / rolling 12 months etc.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://ometistoolkit.com/tools/timeawarecalendar" target="_blank"&gt;https://ometistoolkit.com/tools/timeawarecalendar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 10:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2480667#M100733</guid>
      <dc:creator>110</dc:creator>
      <dc:date>2024-09-10T10:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create Rolling Dimensions in As of Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2481760#M100864</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;
&lt;P&gt;Thanks for your answer, however this doesnt work. If the user selects, let's say May 2024, the values would have to change accordingly. Meaning that the first Quarter shown in the chart would be:&lt;/P&gt;
&lt;P&gt;QTR May 2024 (includes March, April and May) and so on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have gotten this far:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EugeniaCastilla_0-1726484938183.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171689i26F97187137CFFBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EugeniaCastilla_0-1726484938183.png" alt="EugeniaCastilla_0-1726484938183.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And thi setting works as long as no filters are selected.... As you can see, I have now a Master Calendar, an AsOfCalendar and an AsOfQuarter calendar... this works great without filters because i use QImporte to do the sum but when a filter is applied, this Importe is not affected...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EugeniaCastilla_1-1726485059603.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171690i8BF94BE1E0AC6E23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EugeniaCastilla_1-1726485059603.png" alt="EugeniaCastilla_1-1726485059603.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 11:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2481760#M100864</guid>
      <dc:creator>EugeniaCastilla</dc:creator>
      <dc:date>2024-09-16T11:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create Rolling Dimensions in As of Tables</title>
      <link>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2481787#M100867</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/106549"&gt;@EugeniaCastilla&lt;/a&gt;&amp;nbsp; see the below article&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Rolling-N-months/ta-p/1484325" target="_blank"&gt;https://community.qlik.com/t5/Member-Articles/Rolling-N-months/ta-p/1484325&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-Rolling-Dimensions-in-As-of-Tables/m-p/2481787#M100867</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-09-16T12:38:28Z</dc:date>
    </item>
  </channel>
</rss>

