<?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: Relationship between TOTAL and Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122657#M457827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case... try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(VALUE)/Above(Sum(VALUE), 12)&lt;SPAN style="color: #ff0000;"&gt; * Avg({&amp;lt; YearMonth={'&amp;gt;$(=Max(YearMonth-100))'}&amp;gt;} 1)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2018 11:09:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-08-10T11:09:34Z</dc:date>
    <item>
      <title>Relationship between TOTAL and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122654#M457824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was working with some dates, and the client asked me to represent in a chart:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;X Axis: Year-Month (Concatenation between year and month. Format 'YYYYMM')&lt;/LI&gt;&lt;LI&gt;Y Axis: CY / LY, being&lt;UL&gt;&lt;LI&gt;CY: Current year values calculated for each month. A simple Sum(VALUE)&lt;/LI&gt;&lt;LI&gt;LY: Last year values calculated for the same month as the CY. Same formula, Sum(VALUE)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Doing that for the months of the actual year is quite easy (You get the month as dimension and the CY and LY in set analysis), but then they asked me to do it for the last 12 months.&lt;/P&gt;&lt;P&gt;I tried to do Sum(VALUE) / Sum(TOTAL {&amp;lt; YearMonth={'$(=Max(YearMonth-100))'}&amp;gt;} VALUE), but the TOTAL also affects the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a possible solution for this problem? Thanks in advance,&lt;/P&gt;&lt;P&gt;Pedro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 07:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122654#M457824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-09T07:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between TOTAL and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122655#M457825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(VALUE)/Above(Sum(VALUE), 12)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 16:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122655#M457825</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-09T16:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between TOTAL and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122656#M457826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. I have checked and the formula that you have given me works because I only have 24 months&amp;nbsp; of data and I can choose not to include the zero values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my case were different and I had more than 24 months, I would have to hide some values by limiting the amount of YearMonths displayed (either hardcoded in the dimension or by limiting it by a Fixed number). In this case, the above formula doesn't work because the values for the last year dissapear too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, for me it works. Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD: I will mark your answer as correct, but I'm going to leave some time to see if anyone can give a solution that also works for more than 24 months &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 08:44:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122656#M457826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-10T08:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between TOTAL and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122657#M457827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case... try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(VALUE)/Above(Sum(VALUE), 12)&lt;SPAN style="color: #ff0000;"&gt; * Avg({&amp;lt; YearMonth={'&amp;gt;$(=Max(YearMonth-100))'}&amp;gt;} 1)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 11:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122657#M457827</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-10T11:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between TOTAL and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122658#M457828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very smart answer indeed. The formula worked with a small modification to include the last 12 months, and not only the 12th&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum(KPI_VALUE)/Above(Sum(KPI_VALUE),12)) * Avg({&amp;lt; YearMonth={"&amp;gt;$(=Max(YearMonth-100))"}&amp;gt;} 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will mark your answer as the correct one. Thanks,&lt;/P&gt;&lt;P&gt;Pedro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 07:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122658#M457828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-13T07:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship between TOTAL and Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122659#M457829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Made correction in my expression to avoid any confusion for future visitors&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relationship-between-TOTAL-and-Set-analysis/m-p/122659#M457829</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-14T19:50:14Z</dc:date>
    </item>
  </channel>
</rss>

