<?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: Grouping a barchart by unformatted values? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717938#M21034</link>
    <description>I guess my solution is pretty much what you suggested Dan...</description>
    <pubDate>Tue, 09 Feb 2021 15:56:56 GMT</pubDate>
    <dc:creator>andypandy_swe</dc:creator>
    <dc:date>2021-02-09T15:56:56Z</dc:date>
    <item>
      <title>Grouping a barchart by unformatted values?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717839#M21030</link>
      <description>&lt;P&gt;I'm grouping a barchartparm by sites in four groups.&lt;/P&gt;
&lt;P&gt;leaf node site, parent, that parent's parent, and Nation.&lt;/P&gt;
&lt;P&gt;All sites have unique ID's but from time to time two unique ID's have the same label. So a leaf node might have ID=12345 and have the label 'Mysite' and it's parent site with ID=98765 might also have the label 'Mysite'.&lt;/P&gt;
&lt;P&gt;When I send the data to a barchartparm template, of course the two groups are merged into one (and SAS issues a warning). And so I get only three groups instead of four.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get the barchartparm to recognize that they're two different groups (to look at the ID instead of the label of the ID variable) ? If not, is there a workaround so that i can present all four groups and have two of them shown with the same name?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 11:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717839#M21030</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2021-02-09T11:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping a barchart by unformatted values?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717924#M21031</link>
      <description>&lt;P&gt;At least show the code you are currently attempting so we know all the options you are using.&lt;/P&gt;
&lt;P&gt;That may help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But since your data has the same value for a variable you may need to modify the data.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 14:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717924#M21031</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-09T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping a barchart by unformatted values?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717932#M21032</link>
      <description>&lt;P&gt;In your user-defined format, try adding this label twice&amp;nbsp; but add a leading &amp;lt;space&amp;gt; to one of them. Then, assign one the unique values to these labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 15:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717932#M21032</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-02-09T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping a barchart by unformatted values?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717937#M21033</link>
      <description>Thank you both but I just solved it. For one of the four levels (one of the two that has the possibility of getting the same label) I added a right-align to the putc() -function in my proc format.&lt;BR /&gt;This makes the barchartparm template recognize it as a separate group and when the groups are listed in the legend of the graph, it isn't right aligned anymore so it looks just the way I want it. &lt;BR /&gt;&lt;BR /&gt;proc format library=save.session_formats;&lt;BR /&gt;value $unit_output&lt;BR /&gt;...&lt;BR /&gt;'2_STEPS_DOWN'="%sysfunc(putc(&amp;amp;ADMINISTRATIVE_UNIT, $ORG_UNIT_NAME. -r))"&lt;BR /&gt;'3_STEPS_DOWN'="%sysfunc(putc(&amp;amp;UNIT, $ORG_UNIT_NAME.))"&lt;BR /&gt;...&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Feb 2021 15:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717937#M21033</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2021-02-09T15:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping a barchart by unformatted values?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717938#M21034</link>
      <description>I guess my solution is pretty much what you suggested Dan...</description>
      <pubDate>Tue, 09 Feb 2021 15:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grouping-a-barchart-by-unformatted-values/m-p/717938#M21034</guid>
      <dc:creator>andypandy_swe</dc:creator>
      <dc:date>2021-02-09T15:56:56Z</dc:date>
    </item>
  </channel>
</rss>

