<?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: Dynamic grouping? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680342#M14162</link>
    <description>Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;</description>
    <pubDate>Mon, 31 Aug 2020 01:43:20 GMT</pubDate>
    <dc:creator>stanh</dc:creator>
    <dc:date>2020-08-31T01:43:20Z</dc:date>
    <item>
      <title>Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679376#M14144</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if the title is accurate. Here is what I am trying to achieve and hope some of you can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my source loaded from an excel file with the following data:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;TD&gt;Software 1&lt;/TD&gt;&lt;TD&gt;Number of copies&lt;/TD&gt;&lt;TD&gt;Software 2&lt;/TD&gt;&lt;TD&gt;Number of copies&lt;/TD&gt;&lt;TD&gt;Software 3&lt;/TD&gt;&lt;TD&gt;Number of copies&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Excel&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Word&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Powerpoint&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Word&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Photoshop&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Visio&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Powerpoint&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Excel&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to show the above data using a pie chart to show the number of copies.&lt;/P&gt;&lt;P&gt;The software name is dynamic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope the problem is clear.&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 08:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679376#M14144</guid>
      <dc:creator>stanh</dc:creator>
      <dc:date>2020-08-26T08:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679433#M14145</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/342542"&gt;@stanh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is doable directly in VA designer, but the easiest way would be manipulate the data structure to better support vizualisation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to do it with this data structure here's the steps that I did.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use &lt;STRONG&gt;New aggregated data source...&lt;/STRONG&gt; to create three new data sources: SW1, SW2, SW3&lt;BR /&gt;Selected items are &lt;FONT face="courier new,courier"&gt;Software n&lt;/FONT&gt;&amp;nbsp;and &lt;FONT face="courier new,courier"&gt;Number of copies n&lt;FONT face="arial,helvetica,sans-serif"&gt; (where n is 1, 2, 3)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Use&amp;nbsp;&lt;STRONG&gt;New data source join...&lt;/STRONG&gt; to join SW1 and SW2 -&amp;gt; SW1SW2&lt;BR /&gt;Join type: Full Join.&lt;BR /&gt;Join conditions: &lt;FONT face="courier new,courier"&gt;Software 1&lt;/FONT&gt; = &lt;FONT face="courier new,courier"&gt;Software 2&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Choose columns:&lt;/FONT&gt; Software 1, Number of copies 1, Software 2, Number of copies 2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Use&amp;nbsp;&lt;STRONG&gt;New data source join...&lt;/STRONG&gt;&amp;nbsp;again to join SW1SW2 and SW3&lt;BR /&gt;Join type: Full Join.&lt;BR /&gt;Join conditions: &lt;FONT face="courier new,courier"&gt;Software 1_2&lt;/FONT&gt; = &lt;FONT face="courier new,courier"&gt;Software 3&lt;/FONT&gt;&lt;BR /&gt;Choose columns: &lt;FONT face="courier new,courier"&gt;Software 1, Number of copies 1, Software 2, Number of copies 2, Software 3, Number of copies 3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Create a&amp;nbsp;&lt;STRONG&gt;New calculated item&lt;/STRONG&gt; called&amp;nbsp;&lt;FONT face="courier new,courier"&gt;My SW&lt;/FONT&gt;&lt;BR /&gt;Notice that I've renamed columns f.ex. &lt;FONT face="courier new,courier"&gt;Software 1&lt;/FONT&gt; -&amp;gt; &lt;FONT face="courier new,courier"&gt;SW1.&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;I have probably done some other renamings along the way, but don't remember all.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;I&lt;/FONT&gt;F ( 'SW1'n NotMissing )
RETURN 'SW1'n
ELSE (
IF ( 'SW2'n NotMissing )
RETURN 'SW2'n
ELSE 'SW3'n )&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Create a&amp;nbsp;&lt;STRONG&gt;New calculated item&lt;/STRONG&gt; called &lt;FONT face="courier new,courier"&gt;My Copies&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;PRE&gt;(
IF ( 'Number of copies 1'n NotMissing )
RETURN 'Number of copies 1'n
ELSE 0 ) + (
IF ( 'Number of copies 2'n NotMissing )
RETURN 'Number of copies 2'n
ELSE 0 ) + (
IF ( 'Number of copies 3'n NotMissing )
RETURN 'Number of copies 3'n
ELSE 0 )&lt;/PRE&gt;
&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Then create a Pie Chart using category &lt;FONT face="courier new,courier"&gt;My SW&lt;/FONT&gt; and measure&lt;/FONT&gt; My Copies.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Comm_example.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48660i4BF67636B99346BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Comm_example.PNG" alt="Comm_example.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I hope this helps.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Best regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Petri&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 13:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679433#M14145</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-08-26T13:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679452#M14146</link>
      <description>&lt;P&gt;Thank you,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/106261"&gt;@PetriRoine&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering if what you have suggested is doable in VA 7.3?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 13:26:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679452#M14146</guid>
      <dc:creator>stanh</dc:creator>
      <dc:date>2020-08-26T13:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679478#M14147</link>
      <description>&lt;P&gt;Sorry, I don't think it's possible in VA 7.3 as &lt;EM&gt;aggregated&amp;nbsp;data source&lt;/EM&gt;&amp;nbsp;feature came in VA 8.3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 13:53:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679478#M14147</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2020-08-26T13:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679480#M14148</link>
      <description>&lt;P&gt;Do you have any suggestion how I can do it in VA 7.3?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 13:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679480#M14148</guid>
      <dc:creator>stanh</dc:creator>
      <dc:date>2020-08-26T13:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679504#M14149</link>
      <description>&lt;P&gt;It should be possible to transform your data structure by using SAS DATA step or SQL syntax. Preparing the data in this way should greatly simplify visualization in VA.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 14:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/679504#M14149</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-08-26T14:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680335#M14160</link>
      <description>Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;.&lt;BR /&gt;I am very new SAS. If you could point me to any documentation on this will be great.</description>
      <pubDate>Sun, 30 Aug 2020 23:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680335#M14160</guid>
      <dc:creator>stanh</dc:creator>
      <dc:date>2020-08-30T23:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680338#M14161</link>
      <description>Hi Stanh,&lt;BR /&gt;&lt;BR /&gt;I am not a great expert on Base SAS programming, so I would recommend that you create a thread in the SAS Programming community here:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/bd-p/programming" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/bd-p/programming&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you show them the column structure you have in Excel, they should be able to help you come up with the SAS code to read it in properly for VA.&lt;BR /&gt;&lt;BR /&gt;Sam</description>
      <pubDate>Sun, 30 Aug 2020 23:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680338#M14161</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-08-30T23:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680342#M14162</link>
      <description>Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13794"&gt;@Sam_SAS&lt;/a&gt;</description>
      <pubDate>Mon, 31 Aug 2020 01:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680342#M14162</guid>
      <dc:creator>stanh</dc:creator>
      <dc:date>2020-08-31T01:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic grouping?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680861#M14166</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/342542"&gt;@stanh&lt;/a&gt;&amp;nbsp;- Changing your data from wide to long format should do the trick:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="193"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;Project&lt;/TD&gt;
&lt;TD width="80"&gt;Software&lt;/TD&gt;
&lt;TD width="49"&gt;Copies&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;Excel&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;Word&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;Powerpoint&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;TD&gt;Word&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;TD&gt;Photoshop&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;TD&gt;Visio&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;C&lt;/TD&gt;
&lt;TD&gt;Powerpoint&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;C&lt;/TD&gt;
&lt;TD&gt;Excel&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 02 Sep 2020 04:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-grouping/m-p/680861#M14166</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-09-02T04:11:55Z</dc:date>
    </item>
  </channel>
</rss>

