<?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: Problem with NUM Function and Rounding in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631619#M1092519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh, I misunderstood how NUM worked then.&amp;nbsp; How do you designate how many decimal places it should round to then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2014 15:55:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-13T15:55:51Z</dc:date>
    <item>
      <title>Problem with NUM Function and Rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631617#M1092515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following function which I would like to have behave in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Sum Function (of the set of current selections minus the years 2011-2014) returns a value larger than a billion dollars, the number should display in billions ($#,##B).&amp;nbsp; If not, and the value is larger than a million dollars, the number should display in millions ($#,##M).&amp;nbsp; If not, and the value is larger than a thousand dollars, the number should display in thousands ($#,##K).&amp;nbsp; If not, display in individual dollars ($#,##).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it stands now, the SUM function works, but the Num Function doesn't seem to be working, other than inserting commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount)/1000000000&amp;gt;1,NUM(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount),'$#,###0B'),IF(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount)/1000000&amp;gt;1,NUM(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount),'$#,##0M'),IF(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount)/1000&amp;gt;1,NUM(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount),'$#,##0K'),NUM(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount),'$#,##0'))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631617#M1092515</guid>
      <dc:creator />
      <dc:date>2014-05-13T15:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with NUM Function and Rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631618#M1092517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you are not including the divisor in each of the sum functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount)/1000000000&amp;gt;1,NUM(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount)&lt;STRONG&gt;/1000000000&lt;/STRONG&gt;,'$#,###0B'),IF(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount)/1000000&amp;gt;1,NUM(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount),'$#,##0M')&lt;STRONG&gt;/1000000&lt;/STRONG&gt;,IF(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount)/1000&amp;gt;1,NUM(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount)&lt;STRONG&gt;/1000&lt;/STRONG&gt;,'$#,##0K'),NUM(SUM({$-&amp;lt;FiscalYear={2011,2012,2013,2014}&amp;gt;}Amount),'$#,##0'))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631618#M1092517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-13T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with NUM Function and Rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631619#M1092519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh, I misunderstood how NUM worked then.&amp;nbsp; How do you designate how many decimal places it should round to then?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631619#M1092519</guid>
      <dc:creator />
      <dc:date>2014-05-13T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with NUM Function and Rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631620#M1092521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the format. For instance '$#,##0.0B' for 1 decimal place etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 15:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631620#M1092521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-13T15:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with NUM Function and Rounding</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631621#M1092524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it!&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 16:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-NUM-Function-and-Rounding/m-p/631621#M1092524</guid>
      <dc:creator />
      <dc:date>2014-05-13T16:05:15Z</dc:date>
    </item>
  </channel>
</rss>

