<?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 How to use variable in IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971818#M332627</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;I'm bothering myself with one problem.&lt;/P&gt;&lt;P&gt;I would like to compare a value that I calculate and it is stored in variable with the Value from Field and then to color Background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I change the variable with inputed value it works fine, but with variable not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;What I am doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This the End result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/96665_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/96659_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/96666_pastedImage_5.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variable value in text box&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/96660_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is it problem with compare string and number? Or?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Please advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 11:34:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-21T11:34:39Z</dc:date>
    <item>
      <title>How to use variable in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971818#M332627</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;I'm bothering myself with one problem.&lt;/P&gt;&lt;P&gt;I would like to compare a value that I calculate and it is stored in variable with the Value from Field and then to color Background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I change the variable with inputed value it works fine, but with variable not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;What I am doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;This the End result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/96665_pastedImage_4.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/96659_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/96666_pastedImage_5.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;variable value in text box&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/96660_pastedImage_3.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Is it problem with compare string and number? Or?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Please advice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Thx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 11:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971818#M332627</guid>
      <dc:creator />
      <dc:date>2015-08-21T11:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971819#M332628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the expression for that variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to apply num function over expression like &lt;STRONG&gt;num(expression)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 11:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971819#M332628</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-21T11:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971820#M332629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have already tried this and many other ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 11:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971820#M332629</guid>
      <dc:creator />
      <dc:date>2015-08-21T11:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971821#M332630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your formatting of the number is different to the value that is&amp;nbsp; being compared..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one is having . and another is having a comma..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can not compare number with a string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fix it and it should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 11:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971821#M332630</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-21T11:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971822#M332631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just a minute ago I've changed the Number format in properties.&lt;/P&gt;&lt;P&gt;Still no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I 'm aware the problem lies comeprrison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I define that these two values are string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 11:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971822#M332631</guid>
      <dc:creator />
      <dc:date>2015-08-21T11:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971823#M332632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could may be try&lt;/P&gt;&lt;P&gt;num(replace('$(vX)',',','.'),'0.00')&lt;/P&gt;&lt;P&gt;where vX is your variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 11:54:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971823#M332632</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-21T11:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use variable in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971824#M332633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just did it in Load statement.&lt;/P&gt;&lt;P&gt;I was loading dataset with comma, instead .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will see result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 11:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-variable-in-IF-statement/m-p/971824#M332633</guid>
      <dc:creator />
      <dc:date>2015-08-21T11:57:49Z</dc:date>
    </item>
  </channel>
</rss>

