<?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 condition does not work with multiple choices in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200538#M59022</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 problem with an if statement.&lt;/P&gt;&lt;P&gt;i have a chart with invoicenumber as a dimension and in my expression i want it to give me a value if the invoices is connected to a bookkeeping account.&lt;/P&gt;&lt;P&gt;so in my case i write =if(bk_account='1401','Yes','No')&lt;/P&gt;&lt;P&gt;and it returns "No" even if the invoicinumber IS connected to a bk account.&lt;/P&gt;&lt;P&gt;The only thing i can come up with is that this has to be because there's several bk_accounts connected to the invoice.&lt;/P&gt;&lt;P&gt;Am i right? And in that case, how do i solve my problem?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2011 14:03:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-06T14:03:51Z</dc:date>
    <item>
      <title>if condition does not work with multiple choices</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200538#M59022</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 problem with an if statement.&lt;/P&gt;&lt;P&gt;i have a chart with invoicenumber as a dimension and in my expression i want it to give me a value if the invoices is connected to a bookkeeping account.&lt;/P&gt;&lt;P&gt;so in my case i write =if(bk_account='1401','Yes','No')&lt;/P&gt;&lt;P&gt;and it returns "No" even if the invoicinumber IS connected to a bk account.&lt;/P&gt;&lt;P&gt;The only thing i can come up with is that this has to be because there's several bk_accounts connected to the invoice.&lt;/P&gt;&lt;P&gt;Am i right? And in that case, how do i solve my problem?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200538#M59022</guid>
      <dc:creator />
      <dc:date>2011-04-06T14:03:51Z</dc:date>
    </item>
    <item>
      <title>if condition does not work with multiple choices</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200539#M59023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you attach the application?&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200539#M59023</guid>
      <dc:creator />
      <dc:date>2011-04-06T14:22:41Z</dc:date>
    </item>
    <item>
      <title>if condition does not work with multiple choices</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200540#M59024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there could be several options, try this:&lt;/P&gt;&lt;P&gt;IF(Count(IF(bk_account=1401,'Yes','No'))&amp;gt;0,'Yes', 'No') // somewhat like checking existance&lt;/P&gt;&lt;P&gt;does EXISTS() help otherwise?&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200540#M59024</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-04-06T14:23:50Z</dc:date>
    </item>
    <item>
      <title>if condition does not work with multiple choices</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200541#M59025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if bk_account is a number you don't need the quotes around it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200541#M59025</guid>
      <dc:creator />
      <dc:date>2011-04-06T14:25:19Z</dc:date>
    </item>
    <item>
      <title>SV:Re: if condition does not work with multiple choices</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200542#M59026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have to put the exists in the script right? because i do this in the expression in a chart...&lt;BR /&gt;&lt;BR /&gt;the one you provided with the "count" didn't work unfortunately.&lt;/P&gt;&lt;P&gt;And also, i've tried with and witout the quotes around 1401.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200542#M59026</guid>
      <dc:creator />
      <dc:date>2011-04-06T14:32:01Z</dc:date>
    </item>
    <item>
      <title>SV:Re: if condition does not work with multiple choices</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200543#M59027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, there is a mistake in my previous expression. please try this:&lt;/P&gt;&lt;P&gt;IF(Count(IF(bk_account=1401,'Yes'))&amp;gt;0,'Yes', 'No')&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 14:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200543#M59027</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-04-06T14:35:25Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: if condition does not work with multiple choices</title>
      <link>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200544#M59028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! It worked!&lt;/P&gt;&lt;P&gt;/A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 15:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-condition-does-not-work-with-multiple-choices/m-p/200544#M59028</guid>
      <dc:creator />
      <dc:date>2011-04-06T15:01:57Z</dc:date>
    </item>
  </channel>
</rss>

