<?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: Compare the values of two numeric variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521662#M194939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Salto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do your Expr1 contain a numeric value ?&lt;/P&gt;&lt;P&gt;if yes, remove the $ expansion sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;=10;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v1E&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;= 'v1';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v2E&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;= 'v2';&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v3&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;v1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;V2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, 2, 3);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v3E&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;$(v1E)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;$(v2E)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;, 2, 3); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both v3 and v3E are = 3&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 13:34:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-16T13:34:09Z</dc:date>
    <item>
      <title>Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521654#M194931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another (basic?) question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Expr1 and Expr2 as two variables. I want to compare them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=if(($(Expr1))&amp;gt;($(Expr2)),$(Expr1),$(Expr2))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But QV will no return anything. &lt;/P&gt;&lt;P&gt;The same happens if I use &lt;STRONG&gt;rangemax&lt;/STRONG&gt; for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to compare variables?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 12:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521654#M194931</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-01-16T12:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521655#M194932</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 this, give this in number tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Num($(Expr1))&amp;gt;Num($(Expr2)),$(Expr1),$(Expr2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Rode&lt;/P&gt;&lt;P&gt;+91 8976977897&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 12:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521655#M194932</guid>
      <dc:creator>kiranmanoharrode</dc:creator>
      <dc:date>2014-01-16T12:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521656#M194933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your fast answer,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but the result still is a '-'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to compare the values of two variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 12:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521656#M194933</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-01-16T12:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521657#M194934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression in $(Expr1) and $(Expr2),&lt;/P&gt;&lt;P&gt;and where are you using this if condition, in chart or script&amp;nbsp; or text box?&lt;/P&gt;&lt;P&gt;-Sundar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 12:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521657#M194934</guid>
      <dc:creator>sundarakumar</dc:creator>
      <dc:date>2014-01-16T12:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521658#M194935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;=if((CHR(39)$(Expr1)&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;CHR(39)&lt;/EM&gt;&lt;/STRONG&gt;)&amp;gt;(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;CHR(39)&lt;/EM&gt;&lt;/STRONG&gt;$(Expr2)&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;CHR(39)&lt;/EM&gt;&lt;/STRONG&gt;),&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;CHR(39)&lt;/EM&gt;&lt;/STRONG&gt;$(Expr1)&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;CHR(39)&lt;/EM&gt;&lt;/STRONG&gt;,&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;CHR(39)&lt;/EM&gt;&lt;/STRONG&gt;$(Expr2)&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;CHR(39)&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;-Nilesh&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 12:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521658#M194935</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2014-01-16T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521659#M194936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sundar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expr1 and Expr 2 are document variables that have been set up like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Expr1:num(sum({&amp;lt;"Date"={"&amp;lt;=$(=date(DateID,'DD/MM/YYYY'))"}&amp;gt;} "Amount"))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Expr2:num(sum({&amp;lt;"Date"={"&amp;lt;=$(=date(DateID-30,'DD/MM/YYYY'))"}&amp;gt;} "Amount"))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I was comparing them in&amp;nbsp; text box. The values for Expr1 and Expr2 were correctly shown in other two text boxes.&lt;/P&gt;&lt;P&gt;But I was not using exactly the syntax above for the variables and it seems to be the reason for them not to be correctly compared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now they are correctly evaluated and compared with &lt;STRONG&gt;rangemax&lt;/STRONG&gt; or&amp;nbsp; with &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;if(($(Expr1))&amp;gt;($(Expr2)),$(Expr1),$(Expr2))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521659#M194936</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-01-16T13:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521660#M194937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nilesh for your answer. &lt;/P&gt;&lt;P&gt;I have solved my issue with the above explanation.&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>Thu, 16 Jan 2014 13:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521660#M194937</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-01-16T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521661#M194938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521661#M194938</guid>
      <dc:creator>nilesh_gangurde</dc:creator>
      <dc:date>2014-01-16T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521662#M194939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Salto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do your Expr1 contain a numeric value ?&lt;/P&gt;&lt;P&gt;if yes, remove the $ expansion sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;let &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;=10;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v1E&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;= 'v1';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v2E&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;= 'v2';&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v3&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;v1&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;V2&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, 2, 3);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 10pt;"&gt;let&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;v3E&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;$(v1E)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &amp;gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 10pt;"&gt;$(v2E)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;, 2, 3); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both v3 and v3E are = 3&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521662#M194939</guid>
      <dc:creator />
      <dc:date>2014-01-16T13:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521663#M194940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below these 2 any one will suits according to ur condition&lt;/P&gt;&lt;P&gt;=if($(vExpr1)&amp;gt;$(vExpr2),$(vExpr2),$(vExpr1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if('$(vExpr1)'&amp;gt;'$(vExpr2)',$(vExpr1),$(vExpr2) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521663#M194940</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2014-01-16T13:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521664#M194941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nizam, Fabrice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help, the issue is solved already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521664#M194941</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-01-16T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521665#M194942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent&lt;/P&gt;&lt;P&gt;What was the answer ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521665#M194942</guid>
      <dc:creator />
      <dc:date>2014-01-16T14:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare the values of two numeric variables</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521666#M194943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabrice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is explained (not very deeply anyway) in my third post in this thread: the expressions I was using for the variables were not EXACTLY the ones I had posted: they had more conditions and were formatted as currency.&lt;/P&gt;&lt;P&gt;Just to make my question easier to read, I simplified the expressions as below, removing non mandatory conditions and the currency formatting. I did the same in my QV document, just to give a try... and that did the job.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It works with the expressions written like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;Expr1:num(sum({&amp;lt;"Date"={"&amp;lt;=$(=date(DateID,'DD/MM/YYYY'))"}&amp;gt;} "Amount"))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;Expr2:num(sum({&amp;lt;"Date"={"&amp;lt;=$(=date(DateID-30,'DD/MM/YYYY'))"}&amp;gt;} "Amount"))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;And I was comparing them in&amp;nbsp; text box. The values for Expr1 and Expr2 were correctly shown in other two text boxes.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;But I was not using exactly the syntax above for the variables and it seems to be the reason for them not to be correctly compared.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Now they are correctly evaluated and compared with &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;rangemax&lt;/STRONG&gt;&lt;/SPAN&gt; or&amp;nbsp; with &lt;/EM&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG style="font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;if(($(Expr1))&amp;gt;($(Expr2)),$(Expr1),$(Expr2))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-the-values-of-two-numeric-variables/m-p/521666#M194943</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-01-16T14:15:06Z</dc:date>
    </item>
  </channel>
</rss>

