<?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: Deleting decimals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536877#M200634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to really remove the decimals you can use the floor function. For example to keep two decimals: floor( &lt;EM&gt;...myexpressionhere...&lt;/EM&gt; , 0.01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep the decimals, but only &lt;EM&gt;display&lt;/EM&gt; with a number of decimals of your choice then you can use then num function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is that with num the fraction will still exist and used if the result of the expression is used in calculations (like sum). Floor will really cut off the fraction so it will not be used in further calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Aug 2013 17:08:18 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-08-27T17:08:18Z</dc:date>
    <item>
      <title>Deleting decimals</title>
      <link>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536873#M200630</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;I'm a novice and it's difficult to use Qlikview within trainee.&lt;/P&gt;&lt;P&gt;I want to remove figures after comma and choose how many i remove&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;It's my expression and how I could make to remove figures after comma?&lt;/P&gt;&lt;P&gt;=(365*24-SUM({$&amp;lt;AnnéeDateCréationOT = {"= $( =Only(Tempyearname))"&amp;nbsp; }&amp;gt; }&amp;nbsp; Interval([Date fin intervention]-[Date création DI],'h')))/Count(ID_OT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex : 2, 34456&lt;/P&gt;&lt;P&gt;ex : 2, 34&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 14:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536873#M200630</guid>
      <dc:creator />
      <dc:date>2013-08-27T14:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting decimals</title>
      <link>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536874#M200631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use subfiled function like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=subfiled(expression,',',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 14:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536874#M200631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-27T14:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting decimals</title>
      <link>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536875#M200632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing this within a chart go to the number tab and choose the Fixed To option and choose 2 decimal places.&amp;nbsp; If you are doing this else where you can wrap the expression in a num() function like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num((365*24-SUM({$&amp;lt;AnnéeDateCréationOT = {"= $( =Only(Tempyearname))"&amp;nbsp; }&amp;gt; }&amp;nbsp; Interval([Date fin intervention]-[Date création DI],'h')))/Count(ID_OT), '#,##0.00')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 14:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536875#M200632</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-08-27T14:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting decimals</title>
      <link>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536876#M200633</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;You have to use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(yourNumber Or Expression, '0,00' ) --&amp;gt; x,xx&lt;/P&gt;&lt;P&gt;=num(yourNumber Or Expression, '0,0000' ) --&amp;gt; x,xxxx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 14:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536876#M200633</guid>
      <dc:creator />
      <dc:date>2013-08-27T14:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting decimals</title>
      <link>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536877#M200634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to really remove the decimals you can use the floor function. For example to keep two decimals: floor( &lt;EM&gt;...myexpressionhere...&lt;/EM&gt; , 0.01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to keep the decimals, but only &lt;EM&gt;display&lt;/EM&gt; with a number of decimals of your choice then you can use then num function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is that with num the fraction will still exist and used if the result of the expression is used in calculations (like sum). Floor will really cut off the fraction so it will not be used in further calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Aug 2013 17:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Deleting-decimals/m-p/536877#M200634</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-08-27T17:08:18Z</dc:date>
    </item>
  </channel>
</rss>

