<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/323785#M119309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing one problem with the set analysis.In my applicatin data there are two quarter fields one which is represented in numeric formats like &lt;/P&gt;&lt;P&gt;20091,20092 and so on.. from this i calculated the Q1,Q2,Q3,Q4 i.e in this way ( 'Q' &amp;amp;right(Quarter,1)&amp;nbsp;&amp;nbsp; ).&lt;/P&gt;&lt;P&gt;Now the problem i have to write expression for calculating the current Vs previous quarter&amp;nbsp; this is also working fine. but when i select 2011 Q1 the comparision has to be done like 2011 Q1 Vs 2010 Q4.&lt;/P&gt;&lt;P&gt;For this i have created a variable which will give me the corresponding values when i select Quarter.&lt;/P&gt;&lt;P&gt;The Variables used are&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PrevYear =IF(Right(MAX(Quarter),1)=1,Max(Year)-1,Max(Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PrevQtr&amp;nbsp; =IF(Right(MAX(Quarter),1)=1,NUM(Max(Quarter)-7),NUM(Max(Quarter)-1))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;My Gauge Chart expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;(&lt;BR /&gt;(&lt;BR /&gt;(sum({&amp;lt;Year={$(=MAX(Year))},[Quarter] = {$(=Max(Quarter))}&amp;gt;}[Revenue_USD]) + sum({&amp;lt;Year={$(=MAX(Year))},[Quarter] = {$(=Max(Quarter))}&amp;gt;}[Rebates]))&lt;BR /&gt;-&lt;BR /&gt;(sum({&amp;lt;Year={$(=vPrevYear)},[Quarter] = {$(=vPrevQtr)}&amp;gt;}[Revenue_USD]) + sum({&amp;lt;Year={$(=vPrevYear)},[Quarter] = {$(=vPrevQtr)}&amp;gt;}[Rebates]))&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;(sum({&amp;lt;Year={$(=vPrevYear)},[Quarter] = {$(=vPrevQtr)}&amp;gt;}[Revenue_USD]) + sum({&amp;lt;Year={$(=vPrevYear)},[Quarter] = {$(=vPrevQtr)}&amp;gt;}[Rebates]))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;The above expression works fine when i&amp;nbsp; select the values in quarter listbox which is having numeric values like 2009,20092.......20111.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿But when i select the values in Listbox Qtr like Q1 Q2 Q3 Q4 this is not working...Chart shows no data to display .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿I checked the expression also ,values are passed properly to the set expression but it is not showing any data for prev qtr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿Did i missed something in variable expression or even in Chart expression..please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 08:33:35 GMT</pubDate>
    <dc:creator>spsrk_84</dc:creator>
    <dc:date>2011-08-02T08:33:35Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/323785#M119309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing one problem with the set analysis.In my applicatin data there are two quarter fields one which is represented in numeric formats like &lt;/P&gt;&lt;P&gt;20091,20092 and so on.. from this i calculated the Q1,Q2,Q3,Q4 i.e in this way ( 'Q' &amp;amp;right(Quarter,1)&amp;nbsp;&amp;nbsp; ).&lt;/P&gt;&lt;P&gt;Now the problem i have to write expression for calculating the current Vs previous quarter&amp;nbsp; this is also working fine. but when i select 2011 Q1 the comparision has to be done like 2011 Q1 Vs 2010 Q4.&lt;/P&gt;&lt;P&gt;For this i have created a variable which will give me the corresponding values when i select Quarter.&lt;/P&gt;&lt;P&gt;The Variables used are&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PrevYear =IF(Right(MAX(Quarter),1)=1,Max(Year)-1,Max(Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PrevQtr&amp;nbsp; =IF(Right(MAX(Quarter),1)=1,NUM(Max(Quarter)-7),NUM(Max(Quarter)-1))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;My Gauge Chart expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;(&lt;BR /&gt;(&lt;BR /&gt;(sum({&amp;lt;Year={$(=MAX(Year))},[Quarter] = {$(=Max(Quarter))}&amp;gt;}[Revenue_USD]) + sum({&amp;lt;Year={$(=MAX(Year))},[Quarter] = {$(=Max(Quarter))}&amp;gt;}[Rebates]))&lt;BR /&gt;-&lt;BR /&gt;(sum({&amp;lt;Year={$(=vPrevYear)},[Quarter] = {$(=vPrevQtr)}&amp;gt;}[Revenue_USD]) + sum({&amp;lt;Year={$(=vPrevYear)},[Quarter] = {$(=vPrevQtr)}&amp;gt;}[Rebates]))&lt;BR /&gt;)&lt;BR /&gt;/&lt;BR /&gt;(sum({&amp;lt;Year={$(=vPrevYear)},[Quarter] = {$(=vPrevQtr)}&amp;gt;}[Revenue_USD]) + sum({&amp;lt;Year={$(=vPrevYear)},[Quarter] = {$(=vPrevQtr)}&amp;gt;}[Rebates]))&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;The above expression works fine when i&amp;nbsp; select the values in quarter listbox which is having numeric values like 2009,20092.......20111.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿But when i select the values in Listbox Qtr like Q1 Q2 Q3 Q4 this is not working...Chart shows no data to display .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿I checked the expression also ,values are passed properly to the set expression but it is not showing any data for prev qtr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿Did i missed something in variable expression or even in Chart expression..please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 08:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/323785#M119309</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2011-08-02T08:33:35Z</dc:date>
    </item>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/323786#M119310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please attach a sample QVW to make evaluation of your case easier. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 08:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/323786#M119310</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-08-02T08:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/323787#M119311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're file is too big, try posting a smaller one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 15:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/323787#M119311</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-08-02T15:06:18Z</dc:date>
    </item>
  </channel>
</rss>

