<?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 Conditional: numeric values problems! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-numeric-values-problems/m-p/296199#M1200513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the first case: you care comparing a numeric value (the result of your Sum function) to a string "1.01" Instead, you should compare to a number 1.01 (without quotes).&lt;/P&gt;&lt;P&gt;For the second: If the previous expression is called "Service Availability" you can use in a different expression in the same chart using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;[Service Availability] + Sum(Whatever)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Dec 2010 09:39:06 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-12-28T09:39:06Z</dc:date>
    <item>
      <title>Conditional: numeric values problems!</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-numeric-values-problems/m-p/296198#M1200511</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;On one hand,&lt;/P&gt;&lt;P&gt;I'm trying to use a simple IF sentence but I've some problems because I want to compare the value result of an operation with a decimal number:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if (&lt;BR /&gt;(Sum (service_availability_hourly.seconds_ok)/(Sum (service_availability_hourly.seconds_ok)+Sum (service_availability_hourly.seconds_not_ok)))&amp;gt;"1.01",&lt;BR /&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_ne_g.png',&lt;BR /&gt;&lt;BR /&gt;if (&lt;BR /&gt;(Sum (service_availability_hourly.seconds_ok)/(Sum (service_availability_hourly.seconds_ok)+Sum (service_availability_hourly.seconds_not_ok)))&amp;lt;"0.99",&lt;BR /&gt;'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_se_r.png')&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I compare the exprsion with numbers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand,&lt;/P&gt;&lt;P&gt;I've calculated the expressions before in a different column of the same table. Should I recalculate the values again in the IF condition or could I take advantadge of the previous calculation. How could I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 09:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-numeric-values-problems/m-p/296198#M1200511</guid>
      <dc:creator />
      <dc:date>2010-12-28T09:31:17Z</dc:date>
    </item>
    <item>
      <title>Conditional: numeric values problems!</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-numeric-values-problems/m-p/296199#M1200513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the first case: you care comparing a numeric value (the result of your Sum function) to a string "1.01" Instead, you should compare to a number 1.01 (without quotes).&lt;/P&gt;&lt;P&gt;For the second: If the previous expression is called "Service Availability" you can use in a different expression in the same chart using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;[Service Availability] + Sum(Whatever)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 09:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-numeric-values-problems/m-p/296199#M1200513</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-28T09:39:06Z</dc:date>
    </item>
    <item>
      <title>Conditional: numeric values problems!</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-numeric-values-problems/m-p/296200#M1200515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also note that A/(A+B) = 1/(1+B/A), so you may be able to avoid recalculating A in that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 02:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-numeric-values-problems/m-p/296200#M1200515</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-12-29T02:29:37Z</dc:date>
    </item>
  </channel>
</rss>

