<?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 Re: Problem with If statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580870#M1097093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may use set analysis&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year = {2012}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;or you can make it dynamic:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year = {"$(=max(Year))"} &amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Apr 2014 09:43:44 GMT</pubDate>
    <dc:creator>sudeepkm</dc:creator>
    <dc:date>2014-04-30T09:43:44Z</dc:date>
    <item>
      <title>Problem with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580869#M1097092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys! I'm a new QlikView user and I need to make that shows sales which were made during 2012 year. I want to make an if expression which have to be something like that: &lt;SPAN style="font-size: 12pt;"&gt;if (year=2012), then Sales else Null end.&lt;/SPAN&gt; I tried this one if (year=2012, Sales, Null), but it says that Null is a bad field. Thank you in advance! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580869#M1097092</guid>
      <dc:creator />
      <dc:date>2014-04-30T09:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580870#M1097093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you may use set analysis&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year = {2012}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;or you can make it dynamic:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year = {"$(=max(Year))"} &amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580870#M1097093</guid>
      <dc:creator>sudeepkm</dc:creator>
      <dc:date>2014-04-30T09:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580871#M1097094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it is possible to write&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt; if (year=2012, Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; if (year=2012, Sales, Null() )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;but I don't see any aggregation.. sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt; if (year=2012, Sales )&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or using set analysis sum({&amp;lt;year={2012}&amp;gt;} Sales)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580871#M1097094</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2014-04-30T09:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580872#M1097095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write like expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Year = 2012 , Sum(Sales),Null( )) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580872#M1097095</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-30T09:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580873#M1097096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;sum(if(Year=2012,Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Year in dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will automake - for year other than 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to presentation-&amp;gt; missing symbol type null there&lt;/P&gt;&lt;P&gt;and null symbol_. type null there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580873#M1097096</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-04-30T09:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580874#M1097097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;=if (year='2012', sum(Sales), 'Null')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 09:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580874#M1097097</guid>
      <dc:creator />
      <dc:date>2014-04-30T09:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580875#M1097098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, you're awesome! Thank you for the quick answers! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 10:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580875#M1097098</guid>
      <dc:creator />
      <dc:date>2014-04-30T10:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with If statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580876#M1097100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am Glad thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 10:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-If-statement/m-p/580876#M1097100</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-04-30T10:25:47Z</dc:date>
    </item>
  </channel>
</rss>

