<?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 with IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-IF-statement/m-p/211051#M65436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, this seems to work:&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Cal.Year = {$(=ONLY(Cal.Year))}, Cal.Month = {"&amp;lt;=$(=MAX(Cal.Month))"}, BUD_REV = {"Bud ET CEUs"}&amp;gt;} BUD_REV_CEUs)&lt;/P&gt;&lt;P&gt;I thought it would probably be an easy one!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jul 2010 14:26:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-01T14:26:53Z</dc:date>
    <item>
      <title>Set analysis with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-IF-statement/m-p/211050#M65435</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;I have the following expression:&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Cal.Year = {$(=ONLY(Cal.Year))}, Cal.Month = {"&amp;lt;=$(=MAX(Cal.Month))"}&amp;gt;} BUD_REV_CEUs)&lt;/P&gt;&lt;P&gt;which calculates YTD total of BUD_REV_CEUs. This works fine.&lt;/P&gt;&lt;P&gt;I have another dimension "BUD_REV" which specifies the Budget or Revision (eg. Budget, Rev1, Rev2 etc.) and I need to restrict the expression to only calculate where BUD_REV = REV2. I tried the following without success:&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Cal.Year = {$(=ONLY(Cal.Year))}, Cal.Month = {"&amp;lt;=$(=MAX(Cal.Month))"}&amp;gt;} IF(BUD_REV = 'REV2', BUD_REV_CEUs))&lt;/P&gt;&lt;P&gt;Please can someone suggest how to make this work?&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;APS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 14:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-IF-statement/m-p/211050#M65435</guid>
      <dc:creator />
      <dc:date>2010-07-01T14:15:17Z</dc:date>
    </item>
    <item>
      <title>Set analysis with IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-with-IF-statement/m-p/211051#M65436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, this seems to work:&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;Cal.Year = {$(=ONLY(Cal.Year))}, Cal.Month = {"&amp;lt;=$(=MAX(Cal.Month))"}, BUD_REV = {"Bud ET CEUs"}&amp;gt;} BUD_REV_CEUs)&lt;/P&gt;&lt;P&gt;I thought it would probably be an easy one!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 14:26:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-with-IF-statement/m-p/211051#M65436</guid>
      <dc:creator />
      <dc:date>2010-07-01T14:26:53Z</dc:date>
    </item>
  </channel>
</rss>

