<?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 Set analysis - Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Help/m-p/95586#M765842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have below scenario.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Data that I have is for 9 Quarters (Q1'17 till Q1'19).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to plot a pivot chart which can accommodate 3 Blocks ,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1st block is the sum of Quarterly Metric Values &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2nd block is the difference between same Quarters of Latest 2 years (Ex: Q1'19&amp;nbsp; - Q1'18&amp;nbsp;&amp;nbsp; Quarterly difference y/y)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3rd block is the Quarterly increase/decrease&amp;nbsp; % (&amp;nbsp; Q1'19 - Q1'18 ) / Q1'18 - Quarter Trend y/y)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;current Table Format from QV&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="81" src="https://community.qlik.com/legacyfs/online/206602_Capture.PNG" style="height: 81px; width: 810px;" width="810" /&gt;&lt;/P&gt;&lt;P&gt;Required Format&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture to Be.PNG" class="jive-image image-2" height="57" src="/legacyfs/online/206627_Capture to Be.PNG" style="height: 57px; width: 930px;" width="930" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the attached QV app, I am unable to accommodate Quarter condition so that while comparing Q2 y/y Diff, it will consider Q2'18 - Q1'17. But in the current model it is considering Q2'19 - Q2'18 causing negative Values as we do not have Q2'19 values in Data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so How do I modify the condition of Max Year in set analysis to accommodate Corresponding Quarter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in straight dimension, it is easy, but Here the model has Picking 3 dimensions using Pick function. How do I accommodate Quarter comparison here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544" target="_blank"&gt;gwassenaar&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>narayanamsn</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Set analysis - Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Help/m-p/95586#M765842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have below scenario.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Data that I have is for 9 Quarters (Q1'17 till Q1'19).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to plot a pivot chart which can accommodate 3 Blocks ,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1st block is the sum of Quarterly Metric Values &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2nd block is the difference between same Quarters of Latest 2 years (Ex: Q1'19&amp;nbsp; - Q1'18&amp;nbsp;&amp;nbsp; Quarterly difference y/y)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3rd block is the Quarterly increase/decrease&amp;nbsp; % (&amp;nbsp; Q1'19 - Q1'18 ) / Q1'18 - Quarter Trend y/y)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;current Table Format from QV&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="81" src="https://community.qlik.com/legacyfs/online/206602_Capture.PNG" style="height: 81px; width: 810px;" width="810" /&gt;&lt;/P&gt;&lt;P&gt;Required Format&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture to Be.PNG" class="jive-image image-2" height="57" src="/legacyfs/online/206627_Capture to Be.PNG" style="height: 57px; width: 930px;" width="930" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the attached QV app, I am unable to accommodate Quarter condition so that while comparing Q2 y/y Diff, it will consider Q2'18 - Q1'17. But in the current model it is considering Q2'19 - Q2'18 causing negative Values as we do not have Q2'19 values in Data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so How do I modify the condition of Max Year in set analysis to accommodate Corresponding Quarter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in straight dimension, it is easy, but Here the model has Picking 3 dimensions using Pick function. How do I accommodate Quarter comparison here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544" target="_blank"&gt;gwassenaar&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Help/m-p/95586#M765842</guid>
      <dc:creator>narayanamsn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Help/m-p/95587#M765843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did it for one of the expressions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="206620" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/206620_Capture.PNG" style="height: 66px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pick(Dim,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Metric ={'Sales'}&amp;gt;}Value)/Sum({&amp;lt;Metric ={'Expenses'}&amp;gt;}Value),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Sum({&amp;lt;Metric ={'Sales'}, FYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddYears(Max(FYearMonth), -1), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(FYearMonth), 0), 'YYYYMM'))"}&amp;gt;}Value)/Sum({&amp;lt;Metric ={'Expenses'}, FYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddYears(Max(FYearMonth), -1), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(FYearMonth), 0), 'YYYYMM'))"}&amp;gt;}Value), -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Metric ={'Sales'}, FYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddYears(Max(FYearMonth), -2), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(FYearMonth), -1), 'YYYYMM'))"}&amp;gt;}Value)/Sum({&amp;lt;Metric ={'Expenses'}, FYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddYears(Max(FYearMonth), -2), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(FYearMonth), -1), 'YYYYMM'))"}&amp;gt;}Value)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum({&amp;lt;Metric ={'Sales'}, FYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddYears(Max(FYearMonth), -1), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(FYearMonth), 0), 'YYYYMM'))"}&amp;gt;}Value)/Sum({&amp;lt;Metric ={'Expenses'}, FYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddYears(Max(FYearMonth), -1), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(FYearMonth), 0), 'YYYYMM'))"}&amp;gt;}Value))/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Sum({&amp;lt;Metric ={'Sales'}, FYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddYears(Max(FYearMonth), -2), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(FYearMonth), -1), 'YYYYMM'))"}&amp;gt;}Value)/Sum({&amp;lt;Metric ={'Expenses'}, FYearMonth = {"$(='&amp;gt;' &amp;amp; Date(AddYears(Max(FYearMonth), -2), 'YYYYMM') &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(FYearMonth), -1), 'YYYYMM'))"}&amp;gt;}Value))-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where FYearMonth looks like this in the script&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MonthStart(Date#(('20' &amp;amp; Right(Fiscal_Quarter, 2)*100)+Mid(Fiscal_Quarter, 2, 1)*3, 'YYYYMM')), 'YYYYMM') as FYearMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 13:35:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Help/m-p/95587#M765843</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-06-29T13:35:36Z</dc:date>
    </item>
  </channel>
</rss>

