<?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/627119#M230437</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 have data quarter wise, now I want to display the last quarter's values.&lt;/P&gt;&lt;P&gt;my dimension is year. so when I use {&amp;lt;quarter=$(max(=(quarter))&amp;gt;} an not getting any value for 2014 since there is no q4 data for 2014. I have only q1 data for 2014. so I want the chart to show q4 data for all years other than 2014 and q1 data for 2014,. my requirement is always show the max quarter data at any time. Please help me with the set analysis expression for this scenario.&lt;/P&gt;&lt;P&gt;I know this can be done with&lt;/P&gt;&lt;P&gt;if(year=max(year),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if quarter=4 set analysis to Q4 and 3 2 1 so on only for max year&lt;/P&gt;&lt;P&gt;and rest with set analysis max quarter. But I think this can be done in set analysis itself.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 07:13:51 GMT</pubDate>
    <dc:creator>sundarakumar</dc:creator>
    <dc:date>2014-05-26T07:13:51Z</dc:date>
    <item>
      <title>Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/627119#M230437</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 have data quarter wise, now I want to display the last quarter's values.&lt;/P&gt;&lt;P&gt;my dimension is year. so when I use {&amp;lt;quarter=$(max(=(quarter))&amp;gt;} an not getting any value for 2014 since there is no q4 data for 2014. I have only q1 data for 2014. so I want the chart to show q4 data for all years other than 2014 and q1 data for 2014,. my requirement is always show the max quarter data at any time. Please help me with the set analysis expression for this scenario.&lt;/P&gt;&lt;P&gt;I know this can be done with&lt;/P&gt;&lt;P&gt;if(year=max(year),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if quarter=4 set analysis to Q4 and 3 2 1 so on only for max year&lt;/P&gt;&lt;P&gt;and rest with set analysis max quarter. But I think this can be done in set analysis itself.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 07:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/627119#M230437</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-05-26T07:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/627120#M230438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attachment of master calendar Please link it with your transaction data and &lt;/P&gt;&lt;P&gt;give following expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;} [ Sales Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 07:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/627120#M230438</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-05-26T07:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/627121#M230439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(If(Quarter = Max(TOTAL &amp;lt;Year&amp;gt; Quarter), Sum(Sales), 0), Year, Quarter))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; Sum(Aggr(Sum({&amp;lt;quarter= {'$(=max(quarter))'}&amp;gt;} , Year))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 07:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help/m-p/627121#M230439</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-05-26T07:48:47Z</dc:date>
    </item>
  </channel>
</rss>

