<?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: Round Function does not work in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1805356#M65458</link>
    <description>&lt;P&gt;Hi, round() will round that value to the most nearest value: Round(&lt;SPAN&gt;"Price1"-("Price3"+"Price4"), 0.01)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Num() can change the format, internally stores the full value but only shows 2 decimals: Num("Price1"-("Price3"+"Price4"), '#.##0,00') // Or #,##0.00 using dot as decimal separator&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 11:35:03 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2021-05-05T11:35:03Z</dc:date>
    <item>
      <title>Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1803796#M65270</link>
      <description>&lt;P&gt;Hello together,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the below formula, unfortunately the round function does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Price={0},[ReturnLabel.]={"R*"},[Key]-={2578}&amp;gt;}&lt;BR /&gt;If(round(Price,0.01)&amp;lt;round([Price1],0.01),Material,null()))&lt;/P&gt;&lt;P&gt;Price is loaded in the script as below:&lt;/P&gt;&lt;P&gt;if(floor("Price1")-(floor("Price3"+"Price4"))=0,'1','0') as Price&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;BR /&gt;Kind Regards&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 12:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1803796#M65270</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-04-29T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1803836#M65282</link>
      <description>&lt;P&gt;Hi, why you say it doesn't works? can you post an example? If Price is an integer value rounding it wo 0.01 will return 0 or 1, nothing to round here, maybe you expect something differnt for the Round function?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 13:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1803836#M65282</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-04-29T13:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1803872#M65287</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;the difference between Price1 and (Price3+Price4) is 0,01€.&lt;BR /&gt;The Material should not be counted in the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Price1 is 190,99€&amp;nbsp;&lt;BR /&gt;Price3 is 95,5€&lt;BR /&gt;Price4 is&amp;nbsp; 95,5€&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Price={0},[ReturnLabel.]={"R*"},[Key]-={2578}&amp;gt;}&lt;BR /&gt;If(round(Price,0.01)&amp;lt;round([Price1],0.01),Material,null()))&lt;/P&gt;&lt;P&gt;Price is loaded in the script as below:&lt;/P&gt;&lt;P&gt;if(floor("Price1")-(floor("Price3"+"Price4"))=0,'1','0') as Price&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 15:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1803872#M65287</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-04-29T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804346#M65339</link>
      <description>&lt;P&gt;Hi Daniel, by the way Price is loaded it only can have 2 values: 0 or 1, &lt;STRONG&gt;thats what&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;if(floor("Price1")-(floor("Price3"+"Price4"))=0,'1','0') as Price&lt;/STRONG&gt; is doing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Using &lt;STRONG&gt;Price={0&lt;/STRONG&gt;} you use set analysis to only keep records where Price is '0'. And the 'If()', picking the example values it would be:&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;0&amp;lt;190.99&lt;/STRONG&gt;, Material, Null()) -&amp;gt; If() is true so it returns Material (at least if it has ReturnLaber="R*" and Key&amp;lt;&amp;gt;2578)&lt;/P&gt;&lt;P&gt;The other possible value for Price is 1 so the If() would be:&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;1&amp;lt;190.99&lt;/STRONG&gt;, Material, Null()) -&amp;gt; If() is true so it returs Material (at least if it has ReturnLaber="R*" and Key&amp;lt;&amp;gt;2578)&lt;/P&gt;&lt;P&gt;Both are comparison that doesn't really maks sense so I think that at some point you are doing something different to your intentions&lt;/P&gt;</description>
      <pubDate>Sat, 01 May 2021 07:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804346#M65339</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-05-01T07:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804567#M65367</link>
      <description>&lt;P&gt;Do you have a solution how to exclude the ones which have a difference &amp;lt;1€?&lt;/P&gt;&lt;P&gt;I tried to load the below in the script editor, unfortunately it did not work.&lt;BR /&gt;My intension was to exclude every value &amp;lt;1€ from PriceDifference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUM("&lt;STRONG&gt;Price1&lt;/STRONG&gt;")-("&lt;STRONG&gt;Price3&lt;/STRONG&gt;"+"&lt;STRONG&gt;Price4&lt;/STRONG&gt;") as PreisDifference&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 11:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804567#M65367</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-05-03T11:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804680#M65381</link>
      <description>&lt;P&gt;Hi, this should be something like:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;PreisDifference={"&amp;gt;-1&amp;lt;1"}&amp;gt;} Material)&lt;/P&gt;&lt;P&gt;And PreisDifference can be calculated as:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUM("&lt;/SPAN&gt;&lt;STRONG&gt;Price1&lt;/STRONG&gt;&lt;SPAN&gt;"-("&lt;/SPAN&gt;&lt;STRONG&gt;Price3&lt;/STRONG&gt;&lt;SPAN&gt;"+"&lt;/SPAN&gt;&lt;STRONG&gt;Price4&lt;/STRONG&gt;&lt;SPAN&gt;"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or: Rangesum(Sum(Price1),-Sum(Price3),-Sum(Price4)) // in case some of the fields can be null&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 15:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804680#M65381</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-05-03T15:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804691#M65383</link>
      <description>&lt;P&gt;&lt;SPAN&gt;With both I get the message "Invalid expression"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any Ideas what could be the reason?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SUM("Price1"-("Price3"+"Price4"))&lt;/P&gt;&lt;P&gt;Rangesum(Sum(Price1),-Sum(Price3),-Sum(Price4))&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 16:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804691#M65383</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-05-03T16:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804820#M65392</link>
      <description>&lt;P&gt;Are you using a group by?, on your last post you used a Sum(), for that you need to have a group by clause, if not you can omit the Sum:&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;"Price1"-("Price3"+"Price4") //or&amp;nbsp;"Price1"-"Price3"-"Price4"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&lt;SPAN&gt;Rangesum(Price1,-Price3,-Price4)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 06:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1804820#M65392</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-05-04T06:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1805316#M65453</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Price1"-("Price3"+"Price4") as Price Comparison worked fine.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know how to show only 2 decimal places for&amp;nbsp;Price Comparison?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards&lt;BR /&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 09:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1805316#M65453</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-05-05T09:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1805356#M65458</link>
      <description>&lt;P&gt;Hi, round() will round that value to the most nearest value: Round(&lt;SPAN&gt;"Price1"-("Price3"+"Price4"), 0.01)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Num() can change the format, internally stores the full value but only shows 2 decimals: Num("Price1"-("Price3"+"Price4"), '#.##0,00') // Or #,##0.00 using dot as decimal separator&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 11:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1805356#M65458</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-05-05T11:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1805357#M65459</link>
      <description>&lt;P&gt;That worked, thank you very much for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&amp;nbsp;&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 11:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1805357#M65459</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-05-05T11:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1806499#M65596</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;Num("Price",'#.##0,00'), to the script, but the price is still shown as below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daniel1908_0-1620635864940.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/54597iC1CB24DB16F5BADC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daniel1908_0-1620635864940.png" alt="Daniel1908_0-1620635864940.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;How do I get 1.998,25€?&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 08:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1806499#M65596</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-05-10T08:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1806673#M65621</link>
      <description>&lt;P&gt;Maybe column format is overwriting field format. Or just apply he same to the column or in the object itself.&lt;/P&gt;&lt;P&gt;What is that? a KPI, a table cell?&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 14:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1806673#M65621</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-05-10T14:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Round Function does not work</title>
      <link>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1807226#M65694</link>
      <description>&lt;P&gt;I added&amp;nbsp;&lt;SPAN&gt;Num("Price",'#.##0,00') into the column.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&amp;nbsp;&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 08:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-Function-does-not-work/m-p/1807226#M65694</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2021-05-12T08:58:24Z</dc:date>
    </item>
  </channel>
</rss>

