<?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 Variables and comparisons in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474445#M1129733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community, I've a problem with my QV model: I would like to make a comparison between a variable and a value from a specific field, in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FT_FattureT.NettoTot&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vFattTot)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(this is an extract from a linear table, where I would like to show a light signal green when the &amp;gt;= is true, red otherwise)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So the question is : why does it not work when I choose a floating point number for the vFattTot, such as 545,56? While it works well when I choose simply 545??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The field FT_Fatture.NettoTot contains floating point values...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks to everyone is answering! ...And sorry for my English! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Dec 2013 18:30:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-11T18:30:48Z</dc:date>
    <item>
      <title>Variables and comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474445#M1129733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community, I've a problem with my QV model: I would like to make a comparison between a variable and a value from a specific field, in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FT_FattureT.NettoTot&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vFattTot)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(this is an extract from a linear table, where I would like to show a light signal green when the &amp;gt;= is true, red otherwise)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So the question is : why does it not work when I choose a floating point number for the vFattTot, such as 545,56? While it works well when I choose simply 545??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The field FT_Fatture.NettoTot contains floating point values...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks to everyone is answering! ...And sorry for my English! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 18:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474445#M1129733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T18:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474446#M1129734</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;you try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;FT_FattureT.NettoTot&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &amp;gt;= '&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(vFattTot)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 19:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474446#M1129734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-11T19:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474447#M1129735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Irene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make Sure in your script inicial variable has a "," as Decimal Step (SET DecimalSep=','; ) because if this variable is declared "SET DecimalSep='.'; " it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have two ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.- In your variable vFattTot use 545.56&lt;/P&gt;&lt;P&gt;2.- Change "." for ","&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 19:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474447#M1129735</guid>
      <dc:creator />
      <dc:date>2013-12-11T19:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and comparisons</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474448#M1129736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oswaldo, thank you for the answer, in fact the problem was really the one you described me! I've found a solution the fits perfectly my model! Thanks again! Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 10:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-comparisons/m-p/474448#M1129736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-16T10:24:22Z</dc:date>
    </item>
  </channel>
</rss>

