<?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 statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359865#M494944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you tell what your trying to achieve count of something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;TheMonth = {"&amp;gt;=$(MonthName(Today(), -2))"},StatusCategoryCode = {"AT"}&amp;gt;} UniqueFieldName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 12:12:30 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-03-20T12:12:30Z</dc:date>
    <item>
      <title>IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359861#M494940</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;&lt;/P&gt;&lt;P&gt;Im new to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know why this will not work as an IF statement in Set Analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= IF(&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;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;TheMonth = {'Feb 2012'}&amp;gt;})= "Feb 2012", 0, 1) &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;Im trying to return the value of 0 if this is equals to "Feb 2012"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 10:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359861#M494940</guid>
      <dc:creator />
      <dc:date>2012-03-20T10:29:27Z</dc:date>
    </item>
    <item>
      <title>IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359862#M494941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You cannot use Set analysis as if then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;TheMonth = {'Feb 2012'}&amp;gt;} Sales) it returns Feb 2012 sales its like applying a filter internally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 10:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359862#M494941</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-20T10:38:29Z</dc:date>
    </item>
    <item>
      <title>IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359863#M494942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use it simply as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TheMonth='Feb 2012',0,1)...u cannot use set analysis with if statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 10:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359863#M494942</guid>
      <dc:creator />
      <dc:date>2012-03-20T10:44:13Z</dc:date>
    </item>
    <item>
      <title>IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359864#M494943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Superb, thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I worked this out.. to sum up the results from the last two months ..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= SUM(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF( &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(MonthName(AddMonths(Today(), -2)) = TheMonth, MonthName(AddMonths(Today(), -2)), MonthName(Today())) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;, 1, 0) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;If i wanted to filter the above also with: StatusCategoryCode = {"AT"} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "as used in set analysis in a previous example", has anyone got any ideas, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 11:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359864#M494943</guid>
      <dc:creator />
      <dc:date>2012-03-20T11:47:30Z</dc:date>
    </item>
    <item>
      <title>IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359865#M494944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you tell what your trying to achieve count of something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;TheMonth = {"&amp;gt;=$(MonthName(Today(), -2))"},StatusCategoryCode = {"AT"}&amp;gt;} UniqueFieldName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 12:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359865#M494944</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-03-20T12:12:30Z</dc:date>
    </item>
    <item>
      <title>IF statements</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359866#M494945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can define a variable (say &lt;STRONG&gt;vMonth&lt;/STRONG&gt;)&amp;nbsp; as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/12283_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Month={$&lt;STRONG&gt;(vMonth&lt;/STRONG&gt;)}, &lt;STRONG&gt;year={'2011'}, StatusCategoryCode={'AT'}&lt;/STRONG&gt;&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 04:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statements/m-p/359866#M494945</guid>
      <dc:creator />
      <dc:date>2012-03-21T04:53:40Z</dc:date>
    </item>
  </channel>
</rss>

