<?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: Montly &amp;quot;Trimester&amp;quot; aggregation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683965#M52091</link>
    <description>&lt;P&gt;I would go with AsOf table, it is more flexible and delivers a good performance&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 20:19:29 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2020-03-11T20:19:29Z</dc:date>
    <item>
      <title>Montly "Trimester" aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683940#M52086</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the usual montlhy sales. What I need is the trimester (quarter) sales with the beginning of the quarter being the month on the dimension.&lt;/P&gt;&lt;P&gt;Example: Dimension value: 201910&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Measure value: 90 million&lt;/P&gt;&lt;P&gt;Explanation: 90 million would be the sum of the actual montlhy values regarding:&lt;/P&gt;&lt;P&gt;201910: 35 million&lt;/P&gt;&lt;P&gt;201911: 30 million&lt;/P&gt;&lt;P&gt;201912: 25 million&lt;/P&gt;&lt;P&gt;Example 2 (continuation): Dimension value: 201911&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Measure value: 150 million&lt;/P&gt;&lt;P&gt;Explanation: 150 million would be the sum of the actual montlhy values regarding:&lt;/P&gt;&lt;P&gt;201911: 30 million&lt;/P&gt;&lt;P&gt;201912: 25 million&lt;/P&gt;&lt;P&gt;202001: 95 million&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My (not so good) approach: I could (did not actually do this, I'm guessing a horrible performance) load my fact table another 2 times: changing only the reference date to 1 month ahead and then another one 2 months ahead.&lt;/P&gt;&lt;P&gt;My formula would be: sum(actual value)+sum(next month value)+sum(last month value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sure that something could be done via set analysis. I tried a few formulas, Having the next 2 periods in the same line and applying [month]={"$([next month])"}. This is the general idea, but off course it did not work. I want to do the sum described above via set analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683940#M52086</guid>
      <dc:creator>rafaeltcosta</dc:creator>
      <dc:date>2024-11-16T03:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Montly "Trimester" aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683957#M52087</link>
      <description>&lt;P&gt;I think you can find&amp;nbsp;different&amp;nbsp; solutions here (use below instead of above):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Calculating-rolling-n-period-totals-averages-or-other/ta-p/1483033&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 20:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683957#M52087</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2020-03-11T20:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Montly "Trimester" aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683961#M52088</link>
      <description>&lt;P&gt;Thank you! I will check it.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 20:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683961#M52088</guid>
      <dc:creator>rafaeltcosta</dc:creator>
      <dc:date>2020-03-11T20:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Montly "Trimester" aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683965#M52091</link>
      <description>&lt;P&gt;I would go with AsOf table, it is more flexible and delivers a good performance&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 20:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1683965#M52091</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2020-03-11T20:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Montly "Trimester" aggregation</title>
      <link>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1684485#M52140</link>
      <description>&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I solved this in 2 ways: doing exactly what I said it was a not so good solution: loading the fact table putting addmonts(-1) and addmonths(-2). This created a necessity to remove the new 2 minimum dates miscreated. After that, it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A more "classy" solution is using above: I forgot this could be used in graphs too! Using sum(valye)+above(sum(valye),1)+above(sum(valye),2).&lt;/P&gt;&lt;P&gt;Classy&amp;nbsp; but it looses precision. That because when the measure is an avg, I need to do an rangeavg of the avgs. This is not as precise as doing the actual avg of all 3 months at once.&lt;/P&gt;&lt;P&gt;At last, I will try the solution you two suggested.&lt;/P&gt;&lt;P&gt;Thank you very much"&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 13:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Montly-quot-Trimester-quot-aggregation/m-p/1684485#M52140</guid>
      <dc:creator>rafaeltcosta</dc:creator>
      <dc:date>2020-03-13T13:10:26Z</dc:date>
    </item>
  </channel>
</rss>

