<?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 if else if else if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-if-else-if-else-if/m-p/151023#M28946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;Can someone assist in converting the below if then elseif then elseif then syntax to set analysis syntax please?&lt;/P&gt;&lt;P&gt;IF (STATUS_Date &amp;gt;= Addmonths(DATE, -12) and STATUS_Date &amp;lt;= Addmonths(DATE, -1),sum(PAID_AMT),&lt;/P&gt;&lt;P&gt;IF (STATUS_Date &amp;gt;= Addmonths(DATE, -24) and STATUS_Date &amp;lt;= Addmonths(DATE, -13),sum(PAID_AMT),&lt;/P&gt;&lt;P&gt;IF (STATUS_Date &amp;gt;= Addmonths(DATE, -36) and STATUS_Date &amp;lt;= Addmonths(DATE, -25),sum(PAID_AMT))&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;Version of Qlikview is 8.5&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kevin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 21:06:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-04T21:06:18Z</dc:date>
    <item>
      <title>Set Analysis if else if else if</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-if-else-if-else-if/m-p/151023#M28946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;Can someone assist in converting the below if then elseif then elseif then syntax to set analysis syntax please?&lt;/P&gt;&lt;P&gt;IF (STATUS_Date &amp;gt;= Addmonths(DATE, -12) and STATUS_Date &amp;lt;= Addmonths(DATE, -1),sum(PAID_AMT),&lt;/P&gt;&lt;P&gt;IF (STATUS_Date &amp;gt;= Addmonths(DATE, -24) and STATUS_Date &amp;lt;= Addmonths(DATE, -13),sum(PAID_AMT),&lt;/P&gt;&lt;P&gt;IF (STATUS_Date &amp;gt;= Addmonths(DATE, -36) and STATUS_Date &amp;lt;= Addmonths(DATE, -25),sum(PAID_AMT))&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;P&gt;Version of Qlikview is 8.5&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kevin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 21:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-if-else-if-else-if/m-p/151023#M28946</guid>
      <dc:creator />
      <dc:date>2009-08-04T21:06:18Z</dc:date>
    </item>
    <item>
      <title>Set Analysis if else if else if</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-if-else-if-else-if/m-p/151024#M28947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM ({$ &amp;lt;STATUS_Date = {"&amp;gt;=Addmonths(DATE,-12)&amp;lt;=Addmonths(DATE, -1)"} &amp;gt;} PAID_AMT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know for sure if that works, but its worth trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 22:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-if-else-if-else-if/m-p/151024#M28947</guid>
      <dc:creator />
      <dc:date>2009-08-04T22:25:06Z</dc:date>
    </item>
    <item>
      <title>Set Analysis if else if else if</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-if-else-if-else-if/m-p/151025#M28948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For better performance&lt;/P&gt;&lt;P&gt;I would suggest to first calculate a flag in the script (that is to say to add a field which take several value (1,2,3,4) ) then to use it in your expression&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 23:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-if-else-if-else-if/m-p/151025#M28948</guid>
      <dc:creator />
      <dc:date>2009-08-04T23:20:50Z</dc:date>
    </item>
  </channel>
</rss>

