<?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 PROC SGPlot - Strange currency format behaviour in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/616940#M19306</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am part way through putting together a natty little horizontal bar chart that shows currency values in the segments and as a total for each bar:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Horizintal bar chart showing product by market sector;
title 'Sales Activity by Market Sector';
proc sgplot data=activity_market_summary;
    hbar Activity_Group / response=total_revenue group=Market displaybaseline=auto barwidth=0.6 
            seglabel seglabelformat=NLMNLGBP10.0 datalabel dataskin=pressed;
    yaxis display=(noline noticks nolabel);
    xaxis display=(noline noticks nolabel) grid;
    format total_revenue NLMNLGBP10.0;
    keylegend / location=outside position=top fillheight=10 fillaspect=2 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The segments are displaying as I would expect, as whole GBP values only. The datalabel values (bar totals) however, are displaying the decimal part (£XXXX.00) in every case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The head scratcher is that, if I change the format of total_revenue to NLMNLGBP10.1 it displays as expected, to one decimal place. The moment I switch back to NLMNLGBP10.0 the two decimals come back!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS9.4 M6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 15:39:37 GMT</pubDate>
    <dc:creator>Jim_Ogilvie</dc:creator>
    <dc:date>2020-01-13T15:39:37Z</dc:date>
    <item>
      <title>PROC SGPlot - Strange currency format behaviour</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/616940#M19306</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am part way through putting together a natty little horizontal bar chart that shows currency values in the segments and as a total for each bar:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Horizintal bar chart showing product by market sector;
title 'Sales Activity by Market Sector';
proc sgplot data=activity_market_summary;
    hbar Activity_Group / response=total_revenue group=Market displaybaseline=auto barwidth=0.6 
            seglabel seglabelformat=NLMNLGBP10.0 datalabel dataskin=pressed;
    yaxis display=(noline noticks nolabel);
    xaxis display=(noline noticks nolabel) grid;
    format total_revenue NLMNLGBP10.0;
    keylegend / location=outside position=top fillheight=10 fillaspect=2 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The segments are displaying as I would expect, as whole GBP values only. The datalabel values (bar totals) however, are displaying the decimal part (£XXXX.00) in every case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The head scratcher is that, if I change the format of total_revenue to NLMNLGBP10.1 it displays as expected, to one decimal place. The moment I switch back to NLMNLGBP10.0 the two decimals come back!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS9.4 M6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 15:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/616940#M19306</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2020-01-13T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPlot - Strange currency format behaviour</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/617028#M19307</link>
      <description>&lt;P&gt;Looks like a bug&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) make sure that the graphs you are looking at are not old versions&lt;/P&gt;
&lt;P&gt;2) if the behaviour is confirmed, open a tract with SAS Technical Support&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/en/technical-support/contact-sas.html" target="_self"&gt;https://support.sas.com/en/technical-support/contact-sas.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 19:47:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/617028#M19307</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2020-01-13T19:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPlot - Strange currency format behaviour</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/617152#M19308</link>
      <description>&lt;P&gt;Many thanks PG - I'll raise it with SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 08:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/617152#M19308</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2020-01-14T08:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPlot - Strange currency format behaviour</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/617404#M19311</link>
      <description>&lt;P&gt;Update form SAS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue has been passed on to SAS R&amp;amp;D for fixing in a future release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meanwhile, they provided this work around which has fixed my issues:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the following format (instead of NLMNLGBP10&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token number"&gt;NLMNY10.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="token number"&gt;Happy SAS'ing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 11:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPlot-Strange-currency-format-behaviour/m-p/617404#M19311</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2020-01-15T11:13:45Z</dc:date>
    </item>
  </channel>
</rss>

