<?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: What's wrong with my if syntax? :( in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559502#M1130657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that works as well (along with unchecking the suppress zero values box).&lt;/P&gt;&lt;P&gt;What's the difference? Which is better?&lt;/P&gt;&lt;P&gt;thanks &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, 11 Dec 2013 10:44:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-11T10:44:25Z</dc:date>
    <item>
      <title>What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559496#M1130651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table of account information (from Salesforce) in QV. Each account has an Account ID and Account Status (Customer, Lost Customer, Work in Progress, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to create an expression that would return 1 if an account was in Customer status and 0 else. This is the expression I used:&lt;/P&gt;&lt;P&gt;if(([Account Status]='Customer'),1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for some reason, when I create a straight table with Account ID as dimension and the expression above as the expression, QV would only show the Accounts with 1 (i.e. the customers), and not all the others. This persists of course after hitting clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;Al&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 10:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559496#M1130651</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559497#M1130652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Al,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be you can check what QV does about missing or zero values. (hidding ?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 10:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559497#M1130652</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559498#M1130653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;BR /&gt;I&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;f([Account Status]='Customer',1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 10:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559498#M1130653</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559499#M1130654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to Presentation tab in the stright table -&amp;gt; Uncheck Suppress zero values and click Ok, You would see the results correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 10:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559499#M1130654</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559500#M1130655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so basic, so simple, how embarassing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 10:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559500#M1130655</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559501#M1130656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to add another expression like "Only({1} [Account ID])" and hide this column from Presentation tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 10:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559501#M1130656</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559502#M1130657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that works as well (along with unchecking the suppress zero values box).&lt;/P&gt;&lt;P&gt;What's the difference? Which is better?&lt;/P&gt;&lt;P&gt;thanks &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, 11 Dec 2013 10:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559502#M1130657</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559503#M1130658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlikview suppresses zero values, if you want then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart Properties -&amp;gt; Presentation -&amp;gt; Uncheck Supress zero values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;f([Account Status]='Customer','Customer', 'Non Customer')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 10:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559503#M1130658</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-12-11T10:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559504#M1130659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yup, that's it! Thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&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, 11 Dec 2013 10:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559504#M1130659</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: What's wrong with my if syntax? :(</title>
      <link>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559505#M1130660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, that's it. I don't have any more 'helpful answer' stars to give, sorry &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 10:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-s-wrong-with-my-if-syntax/m-p/559505#M1130660</guid>
      <dc:creator />
      <dc:date>2013-12-11T10:48:02Z</dc:date>
    </item>
  </channel>
</rss>

