<?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: Help with Num function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653913#M731027</link>
    <description>&lt;P&gt;You are correct that num() doesn't round the numbers. To be precise, it doesn't change the value of the numbers but just change the format(appearance). That means, if you are writing:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;num(3.52,'###0') &amp;gt;=num(3.54,'###0'), you are actually comparing 3.52&amp;gt;=3.54 which is always FALSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for your problem, you have to look for alternate way of handling different formats but num(). Try to explain your case with sample - we could give a try help.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2019 07:01:23 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2019-12-04T07:01:23Z</dc:date>
    <item>
      <title>Help with Num function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653908#M731026</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;For the below expression my expected output was 1 but it returns 0. I know num do not do the rounding.&lt;/P&gt;&lt;P&gt;How can we then get output as 1, i dont want to use round or ceil functions, since i have multiple values with different formats and i am controlling the formats using a different excel sheet.&lt;/P&gt;&lt;P&gt;=if(num(3.52,'###0') &amp;gt;=num(3.54,'###0'),1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:47:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653908#M731026</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2024-11-16T01:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Num function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653913#M731027</link>
      <description>&lt;P&gt;You are correct that num() doesn't round the numbers. To be precise, it doesn't change the value of the numbers but just change the format(appearance). That means, if you are writing:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;num(3.52,'###0') &amp;gt;=num(3.54,'###0'), you are actually comparing 3.52&amp;gt;=3.54 which is always FALSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for your problem, you have to look for alternate way of handling different formats but num(). Try to explain your case with sample - we could give a try help.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 07:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653913#M731027</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-12-04T07:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Num function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653916#M731028</link>
      <description>&lt;P&gt;Thanks Tresesco for the prompt reply. Even i thought the same.&lt;/P&gt;&lt;P&gt;In that case,&amp;nbsp;&lt;SPAN&gt;=if(num(round(3.52),'###0') &amp;gt;=num(round(3.54),'###0'),1,0) should fix the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also if i use the round function outside of num function, again it dosent work, do you know why is it so ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my case i have multiple entries like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A&amp;nbsp; &amp;nbsp;5.6789&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B 5.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;C 8.889&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And each entries should be displayed in different ways, so as of now i use an excel file which have the format mapping like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A&amp;nbsp; '##0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;B '##0.0' etc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe&amp;nbsp;i missed the rounding logic, i am planing to add the rounding values like 1 or 0.01 for the respective values in the above mapping along with the format. Hope that fix my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please let me know if this works or you has a better solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Br,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KC&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 07:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653916#M731028</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2019-12-04T07:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Num function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653971#M731029</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25528"&gt;@jyothish8807&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;&lt;SPAN&gt;Also if i use the round function outside of num function, again it dosent work, do you know why is it so ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It should work, and it is working with me. I tried like below and it works. However, it doesn't make much sense to me using round() outside num().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(round(num((3.52),'###0')) &amp;gt;=round(num((3.54),'###0')),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rest part of having various number formats .. I couldn't really follow why you are doing so.&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 09:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1653971#M731029</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-12-04T09:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Num function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1654075#M731030</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, it does work.. my bad i made a typo.&lt;/P&gt;&lt;P&gt;In my case each entries are different KPIs and each have a different format of display in the staright chart. Some will be in %, some will be in euros etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 12:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Num-function/m-p/1654075#M731030</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2019-12-04T12:55:41Z</dc:date>
    </item>
  </channel>
</rss>

