<?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: Define if with a percentage in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161248#M378574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Num() is just a formatting function, it will not change the underlying number that is actually compared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use rounding functions like suggested above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if(Floor(10000* Column(4)) = Floor(10000* Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_e_y.png',&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp; if(num(Column(4)) &amp;lt; num(Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_g.png',&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(num(Column(4)) &amp;gt; num(Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png'&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2016 16:22:30 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-05-17T16:22:30Z</dc:date>
    <item>
      <title>Define if with a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161245#M378571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem that i can't solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with relative numbers, and what i like to do is, if the value is higher a arrow will show up, if goes down, the arrow shows down, but if its equal, que arrow stands...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my problem :&lt;/P&gt;&lt;P&gt;i have 1,94% in current year, and have 1,94% last year.. bue the arrow shows down... the real numbers are 1,945% and 1,944%, i round the numbers... is there an option or something that can pass by the 0,001% and give me the correct arrow, or it just doesnt work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124806_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;i want the if expression to give me an yellow arrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PCordeiro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 14:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161245#M378571</guid>
      <dc:creator />
      <dc:date>2016-05-17T14:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Define if with a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161246#M378572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your complete expression(s)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Round() / Floor() / Ceil() functions to also round numbers in the expression that you are using for the arrows.&lt;/P&gt;&lt;P&gt;Or multiply by 10000 in that expression and round to avoid comparing floating point values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If( Round( MSCPExpression *10000) = Round( MSPYExpression*10000), Yellow(), ....) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 16:01:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161246#M378572</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-17T16:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Define if with a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161247#M378573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My expression for the pictures is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(num(Column(4)) = num(Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_e_y.png', &lt;/P&gt;&lt;P&gt;&amp;nbsp; if(num(Column(4)) &amp;lt; num(Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_g.png',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(num(Column(4)) &amp;gt; num(Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the column 4 and 5 are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------column 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;%Measure_N={'€sP'}, %Time.Type={'CP'}&amp;gt;} Valor) + sum({$&amp;lt;%Measure_N={'€cP'}, %Time.Type={'CP'}&amp;gt;} Valor))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;%Measure_N={'€sP'}, %Time.Type={'CP'}&amp;gt;} TOTAL Valor) + sum({$&amp;lt;%Measure_N={'€cP'}, %Time.Type={'CP'}&amp;gt;} TOTAL Valor))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------column 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;%Measure_N={'€sP'}, %Time.Type={'PY'}&amp;gt;} Valor) + sum({$&amp;lt;%Measure_N={'€cP'}, %Time.Type={'PY'}&amp;gt;} Valor))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;%Measure_N={'€sP'}, %Time.Type={'PY'}&amp;gt;} TOTAL Valor) + sum({$&amp;lt;%Measure_N={'€cP'}, %Time.Type={'PY'}&amp;gt;} TOTAL Valor))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try put the num(....., '#.##0,00%) but doesnt work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 16:08:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161247#M378573</guid>
      <dc:creator />
      <dc:date>2016-05-17T16:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Define if with a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161248#M378574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Num() is just a formatting function, it will not change the underlying number that is actually compared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use rounding functions like suggested above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if(Floor(10000* Column(4)) = Floor(10000* Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_e_y.png',&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp; if(num(Column(4)) &amp;lt; num(Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_g.png',&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(num(Column(4)) &amp;gt; num(Column(5)), 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_r.png'&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 16:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161248#M378574</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-05-17T16:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Define if with a percentage</title>
      <link>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161249#M378575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round((sum({$&amp;lt;%Measure_N={'€sP'}, %Time.Type={'PY'}&amp;gt;} Valor) + sum({$&amp;lt;%Measure_N={'€cP'}, %Time.Type={'PY'}&amp;gt;} Valor))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;%Measure_N={'€sP'}, %Time.Type={'PY'}&amp;gt;} TOTAL Valor) + sum({$&amp;lt;%Measure_N={'€cP'}, %Time.Type={'PY'}&amp;gt;} TOTAL Valor)), 0.0001)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks! you help me a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 16:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Define-if-with-a-percentage/m-p/1161249#M378575</guid>
      <dc:creator />
      <dc:date>2016-05-17T16:24:22Z</dc:date>
    </item>
  </channel>
</rss>

