<?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 Number/Data Formatting Within Pie Charts. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161289#M35242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright.. maybe this is fixed in 9.0... but as far as I can tell -&lt;/P&gt;&lt;P&gt;No matter what expression I use, even if a very simple expression simply to set decimal places it does not alter the value. It seems the only way I can do anything with it is to 'hard' set the decimal place in the Number tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Mar 2010 03:00:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-01T03:00:07Z</dc:date>
    <item>
      <title>Number/Data Formatting Within Pie Charts.</title>
      <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161285#M35238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy QV Community (First time poster..)&lt;/P&gt;&lt;P&gt;I have a bit of an issue, i'll give a quick background to what I am trying to do before I start posting code and screaming "Help!".&lt;/P&gt;&lt;P&gt;We are using QV to report financial details, on each sheet we have an object that scales the data by factors of [1,1000,1000000]. These are saved in a variable called vScale. To avoid 'hard-coding' values and messy 'If' statements we are using the variable vScaleFactor to adjust values to their correct value.&lt;/P&gt;&lt;P&gt;This is all working correctly with the current code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=num(sum(if([Fisc Year]=2010,[PBIT Impact]*&lt;B&gt;$(CX)&lt;/B&gt;,0))/ vScale,&lt;B&gt;&lt;I&gt;'$(vScaleFormat)'&lt;/I&gt;&lt;/B&gt;)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now this is where the fun begins...&lt;/P&gt;&lt;P&gt;Our requirements are that when vScale = 1 then all values should be whole numbers (No decimal places). However when vScale = 1000 or 1000000 then it must be correct to 1 decimal place.&lt;/P&gt;&lt;P&gt;We did this by creating an 'If' statement in vScaleFormat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=If(vScale=1,'#,##0','#,##0.0')&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This works for Text Objects and Captions and Labels... But not with the charts themselves. The main problem being that we have a Pie Chart on the report that displays these values (Correctly I might add...) yet when we change to a vScale=1 there is still one decimal place. I cannot remove this one decimal place for the life of me.&lt;/P&gt;&lt;P&gt;Losing sleep over it!&lt;/P&gt;&lt;P&gt;"Help!!!"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2010 06:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161285#M35238</guid>
      <dc:creator />
      <dc:date>2010-02-26T06:43:46Z</dc:date>
    </item>
    <item>
      <title>Number/Data Formatting Within Pie Charts.</title>
      <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161286#M35239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Use this example for ur requirement&lt;/P&gt;&lt;P&gt;NUM(Expression, if(vScale=1,'#,##0', '#,##0.0'))&lt;/P&gt;&lt;P&gt;and set Chart Properties-&amp;gt;Number-&amp;gt;Number Format Settings to Expression Default.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2010 08:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161286#M35239</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2010-02-26T08:16:51Z</dc:date>
    </item>
    <item>
      <title>Number/Data Formatting Within Pie Charts.</title>
      <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161287#M35240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your reply;&lt;/P&gt;&lt;P&gt;Unfortunately this expression is not producing the results expected. The correct values are produced but the statement to determine the decimal places does not seem to have any effect.&lt;/P&gt;&lt;P&gt;I did ensure to change the Number Format Settings to Expression Default and I did try testing it with different formats (ie: #,##0.00 and other variations). I am a little confused as to why it will not work since it looks like it should.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Feb 2010 23:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161287#M35240</guid>
      <dc:creator />
      <dc:date>2010-02-28T23:19:13Z</dc:date>
    </item>
    <item>
      <title>Number/Data Formatting Within Pie Charts.</title>
      <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161288#M35241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;I thought I should add the code that I tried so anyone can pick an error:&lt;/P&gt;&lt;P style="margin:0cm 0cm 10pt;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR style="margin:0cm 0cm 10pt;" /&gt;NUM(Sum(If([Year]=2010,[Impact]*$(CX),0)/ vScale),If(vScale=1,'#,##0', '#,##0.0'))&lt;BR style="margin:0cm 0cm 10pt;" /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 01:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161288#M35241</guid>
      <dc:creator />
      <dc:date>2010-03-01T01:02:06Z</dc:date>
    </item>
    <item>
      <title>Number/Data Formatting Within Pie Charts.</title>
      <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161289#M35242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright.. maybe this is fixed in 9.0... but as far as I can tell -&lt;/P&gt;&lt;P&gt;No matter what expression I use, even if a very simple expression simply to set decimal places it does not alter the value. It seems the only way I can do anything with it is to 'hard' set the decimal place in the Number tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 03:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161289#M35242</guid>
      <dc:creator />
      <dc:date>2010-03-01T03:00:07Z</dc:date>
    </item>
    <item>
      <title>Number/Data Formatting Within Pie Charts.</title>
      <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161290#M35243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;STRONG&gt;Kieran,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have tried this both in QV9 and QV8.5&lt;/P&gt;&lt;P&gt;i have tried using 1 variable and two variable&lt;/P&gt;&lt;P&gt;i have tried hardcoding the if in the chart&lt;/P&gt;&lt;P&gt;i even checked if using/not using the $ expension makes a diffrence&lt;/P&gt;&lt;P&gt;IT ALL WORKED!!!&lt;/P&gt;&lt;P&gt;so maybe there is somthing else thats wrong&lt;/P&gt;&lt;P&gt;if you could post a sample maybe we can trace it.&lt;/P&gt;&lt;P&gt;try reversing the if (making it &amp;lt;&amp;gt;1 instead of =1).&lt;/P&gt;&lt;P&gt;where does the 1 come from? do the user input it in an input box? slider? script field?&lt;/P&gt;&lt;P&gt;maybe it isn't equal to 1? - just a wild guess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansyno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 07:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161290#M35243</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2010-03-01T07:05:12Z</dc:date>
    </item>
    <item>
      <title>Number/Data Formatting Within Pie Charts.</title>
      <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161291#M35244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the assistance so far Mansyno, unfortunately I have had no success with your suggestions. I will however explain and clarify where the numbers are coming from for you.&lt;/P&gt;&lt;P&gt;vScale is a Variable we use in an Input Box on the sheet. The values in this box are [1,1000,1000000].&lt;BR /&gt;vScaleFormat is another Variable that has the following code.&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(vScale=1,'#,##0','#,##0.0')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I have tried just writing the 'If' statement in the expressions but it produced the same result so I just use the vScaleFormat variable to keep it clean.&lt;/P&gt;&lt;P&gt;I can't view my first post but I use a Text Object to display a total for the graphs and I have used the following code to produce the exact result I want, however it doesn't work in the chart.&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=num(sum(if([Year]=2010,[Impact]*&lt;B&gt;$(CX)&lt;/B&gt;,0))/ vScale,&lt;B&gt;&lt;I&gt;'$(vScaleFormat)'&lt;/I&gt;&lt;/B&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Note: CX is our currency variable. Again, an Input Box dictates its value. &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Obviously this is a bit frustrating that it will work in a Text Object but not my chart, so I hope this clears up where the '1' comes from and what the other variables in my code are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 23:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161291#M35244</guid>
      <dc:creator />
      <dc:date>2010-03-01T23:25:44Z</dc:date>
    </item>
    <item>
      <title>Number/Data Formatting Within Pie Charts.</title>
      <link>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161292#M35245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel a little stupid here - Tell me if I am right...&lt;/P&gt;&lt;P&gt;I went back to square one and started by using the original code that I had...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Num(Sum(If([Year]=2010,[PBIT]*$(CX),0))/vScale,$(vScaleFormat))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Then accdiently left the 'Text on Data Point' box checked instead of changing it to 'Numbers on Data Point'..... and it worked... I tested this on our development server and locally because I thought I was going mad. I thought that the obvious property for this field would be Number but it only works if selected as Text...&lt;/P&gt;&lt;P&gt;Am I right or did I fluke it somehow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 05:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Number-Data-Formatting-Within-Pie-Charts/m-p/161292#M35245</guid>
      <dc:creator />
      <dc:date>2010-03-02T05:47:09Z</dc:date>
    </item>
  </channel>
</rss>

