<?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 IF Statement within Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-Statement-within-Set-Analysis/m-p/327569#M120613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, the easiest way would be to have the IF outside the Set Analysis and have two num() statements. Alternatively you could have the {Actual} / {Budget} replaced with a variable which contains an Dollar-sign expansions which could be you IF statement resulting in either the text of 'Budget' or 'Actual'.&amp;nbsp; Hope that makes sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 17:04:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-17T17:04:18Z</dc:date>
    <item>
      <title>IF Statement within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement-within-Set-Analysis/m-p/327568#M120612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum({&amp;lt;Year={$(=Only(Year))}, Qtr_Num={2}, [Budget/Actual]={Actual}&amp;gt;} GWP/1000), '#,##0'),&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;I have that for different columns for the different quarters.&amp;nbsp; I'd like it to include an if statement where is says IF the Qtr_Num above is less than or equal to the Qtr-Num selected ﻿[Budget/Actual]={Actual}, else [Budget/Actual]={Budget}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 16:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement-within-Set-Analysis/m-p/327568#M120612</guid>
      <dc:creator />
      <dc:date>2011-11-17T16:36:13Z</dc:date>
    </item>
    <item>
      <title>IF Statement within Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement-within-Set-Analysis/m-p/327569#M120613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, the easiest way would be to have the IF outside the Set Analysis and have two num() statements. Alternatively you could have the {Actual} / {Budget} replaced with a variable which contains an Dollar-sign expansions which could be you IF statement resulting in either the text of 'Budget' or 'Actual'.&amp;nbsp; Hope that makes sense&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 17:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement-within-Set-Analysis/m-p/327569#M120613</guid>
      <dc:creator />
      <dc:date>2011-11-17T17:04:18Z</dc:date>
    </item>
  </channel>
</rss>

