<?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: Substitute a simple if statement with a variable not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1725225#M55216</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;apparently its not a string or number problem.&lt;/P&gt;&lt;P&gt;I think its simply how this function displays the counts. Even the set expression already filter K or V. Really makes no sense to me.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 07:58:13 GMT</pubDate>
    <dc:creator>Applicable88</dc:creator>
    <dc:date>2020-07-06T07:58:13Z</dc:date>
    <item>
      <title>Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724725#M55180</link>
      <description />
      <pubDate>Fri, 03 Jul 2020 06:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724725#M55180</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-07-03T06:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724755#M55184</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;you forgot to explain what is not working&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 08:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724755#M55184</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-07-03T08:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724762#M55186</link>
      <description>&lt;P&gt;Oh...&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6330"&gt;@lironbaram&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;apparently the Forum had the maintenance session while I posted. Thank you for telling me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have following question:&lt;/P&gt;&lt;P&gt;As you know you can also change the title of a straight table with a variable and a switch button dynamically like this:&lt;/P&gt;&lt;P&gt;if(vTest='0', 'Zero','One') That works perfectly , no problem at all.&lt;/P&gt;&lt;P&gt;I now have a straight table with serialnumbers , status and a date :&lt;/P&gt;&lt;P&gt;=if(vTest='0',count({$&amp;lt;Status2={'K'}&amp;gt;}Serialnumbers),count({$&amp;lt;Status2={'V'}&amp;gt;}Serialnumbers)) The table said its invalid. Why its not going to work? Its basically only saying if variable='0' than do this count otherwise the other count.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want to add that I need this as a dimension not measure, so that I can also use it as a bar-chart dimension later on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm using the functions separetely without variable it also works perfectly : count({$&amp;lt;Status2={'K'}&amp;gt;}Serialnumbers) or when using this&amp;nbsp; count({$&amp;lt;Status2={'V'}&amp;gt;}Serialnumbers)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Applicable88_0-1593768326383.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36882i526CB6714A7825A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Applicable88_0-1593768326383.png" alt="Applicable88_0-1593768326383.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 09:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724762#M55186</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-07-03T09:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724764#M55187</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;you need to run your variable to make your if statement works so the mesure should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;$(vTest)&lt;/STRONG&gt;&lt;/FONT&gt;='0',count({$&amp;lt;Status2={'K'}&amp;gt;}Serialnumbers),count({$&amp;lt;Status2={'V'}&amp;gt;}Serialnumbers))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 09:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724764#M55187</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2020-07-03T09:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724765#M55188</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48554"&gt;@brunobertels&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thx, but doesn't solve the problem. Seems to be another issue. The DSE makes no difference here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 09:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724765#M55188</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-07-03T09:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724810#M55191</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume that you have declared your variable in the control variable panel :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brunobertels_1-1593774907439.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36893i1AFAEB61014236E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="brunobertels_1-1593774907439.png" alt="brunobertels_1-1593774907439.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have you test your mesure in a KPI , is the behaviour the same ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 11:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1724810#M55191</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2020-07-03T11:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1725129#M55209</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;if your variable is numeric this should work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if($(vTest)=0,count({$&amp;lt;Status2={"K"}&amp;gt;}Serialnumbers),count({$&amp;lt;Status2={"V"}&amp;gt;}Serialnumbers))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 14:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1725129#M55209</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2020-07-05T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1725138#M55210</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;May your varible value is numeric 0 and check 0 as string . Plase write 0 instead of '0' in if condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if&lt;STRONG&gt;($(vTest)=0&lt;/STRONG&gt;,count({$&amp;lt;Status2={"K"}&amp;gt;}Serialnumbers),count({$&amp;lt;Status2={"V"}&amp;gt;}Serialnumbers))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 15:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1725138#M55210</guid>
      <dc:creator>NitinK7</dc:creator>
      <dc:date>2020-07-05T15:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Substitute a simple if statement with a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1725225#M55216</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;apparently its not a string or number problem.&lt;/P&gt;&lt;P&gt;I think its simply how this function displays the counts. Even the set expression already filter K or V. Really makes no sense to me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 07:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Substitute-a-simple-if-statement-with-a-variable-not-working/m-p/1725225#M55216</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2020-07-06T07:58:13Z</dc:date>
    </item>
  </channel>
</rss>

