<?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: Selecting decimal places dynamically in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390692#M807318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried implementing, but can't get through it...can you please explain it more?&lt;/P&gt;&lt;P&gt;Also can you please explain the integer format and how to implement it as per the requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 07:20:05 GMT</pubDate>
    <dc:creator>freekyali</dc:creator>
    <dc:date>2017-11-02T07:20:05Z</dc:date>
    <item>
      <title>Selecting decimal places dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390689#M807315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am very much new to QlikView...just started with this tool....&lt;/P&gt;&lt;P&gt;I have a requirement...there is a revenue column in my dashboard, in which numbers appear till 15 decimal places. My requirement is to make an input field- in which user can put no. as per his choice(0-15), and depending upon the number inserted(0-15) decimal places should appear.&lt;/P&gt;&lt;P&gt;For eg:- If I say 5 decimal places, revenue in the column should appear till 5 places of decimal only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you guys help me with this requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390689#M807315</guid>
      <dc:creator>freekyali</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting decimal places dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390690#M807316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe use a variable &lt;EM&gt;vFormat&lt;/EM&gt; that creates a format string from the user input &lt;EM&gt;vNumberOfDigits&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='#,##0.' &amp;amp; Repeat('0',vNumberOfDigits)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(adapt format to your needs, e.g. the integer part)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your chart, use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num( Sum(Revenue), vFormat, '.',',')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 10:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390690#M807316</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-01T10:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting decimal places dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390691#M807317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan's approach above should work. If you prefer modifying the actual value to get sums consistent with your display (that is, rounding it off or flooring it), you could also use:&lt;/P&gt;&lt;P&gt;Floor(YourValue,1/(pow(10,vNumOfDigits))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also replace Floor() with Round() depending on the behavior you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. for three digits selected and a value of 1.23456, this would resolve to:&lt;/P&gt;&lt;P&gt;Floor(1.23456,1/10^3)&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;Floor(1.23456, 0.001)&lt;/P&gt;&lt;P&gt;= &lt;/P&gt;&lt;P&gt;1.234&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Round() with the same values would result in 1.235. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 11:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390691#M807317</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-11-01T11:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting decimal places dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390692#M807318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried implementing, but can't get through it...can you please explain it more?&lt;/P&gt;&lt;P&gt;Also can you please explain the integer format and how to implement it as per the requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 07:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390692#M807318</guid>
      <dc:creator>freekyali</dc:creator>
      <dc:date>2017-11-02T07:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting decimal places dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390693#M807319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Freeky Ali wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried implementing, but can't get through it...can you please explain it more?&lt;/P&gt;
&lt;P&gt;Also can you please explain the integer format and how to implement it as per the requirement?&lt;/P&gt;
&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Ali&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How could I explain the integer format as per your requirement without knowing your requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format code is somewhat explained in&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/conventions-number-time-formats.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/conventions-number-time-formats.htm"&gt;Conventions for number and time formats ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need help with creating the variable for the format, then please&lt;/P&gt;&lt;P&gt;- specify your format requirements&lt;/P&gt;&lt;P&gt;- post a small sample QVW with your current status, i.e. the input field and variable definition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 18:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390693#M807319</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-11-02T18:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting decimal places dynamically</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390694#M807320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you soo much for your help.&lt;/P&gt;&lt;P&gt;I implemented your solution and honestly speaking you just nailed it.&lt;/P&gt;&lt;P&gt;I was actually looking for this solution only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for making my day.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 19:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-decimal-places-dynamically/m-p/1390694#M807320</guid>
      <dc:creator>freekyali</dc:creator>
      <dc:date>2017-11-02T19:16:28Z</dc:date>
    </item>
  </channel>
</rss>

