<?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: Bar chart for binary data in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/789999#M15741</link>
    <description>&lt;P&gt;Now I had some time to play around.&lt;/P&gt;
&lt;P&gt;And I can't see that this can be done OOTB.&lt;/P&gt;
&lt;P&gt;Since your data is already calclated you might be able to adjust that, so it suits general reporting/analysis needs.&lt;/P&gt;
&lt;P&gt;As stated intially, and by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;,&amp;nbsp;make life easier by transposing your data.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jan 2022 14:53:32 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2022-01-13T14:53:32Z</dc:date>
    <item>
      <title>Bar chart for binary data</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/785727#M15688</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS VIYA:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Visual Analytics: 8.5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having a table with the following structure (table is loaded in CAS) would it be possible to create a bar chart like in the example below without having to create new a new table (in SAS Studio) to summarise the data? I'm wondering if it is possible to manipulate the data only in SAS Visual Analytics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;V1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;V2&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;V3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smm662002_0-1639393193463.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66696i33C08F8DDB82412D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smm662002_0-1639393193463.png" alt="smm662002_0-1639393193463.png" /&gt;&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;Thank you,&lt;/P&gt;
&lt;P&gt;smm662002&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 11:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/785727#M15688</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2021-12-13T11:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart for binary data</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/785732#M15689</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not good enough in VA to tell if this would work or not, but the data presented is not in optimal layout for reporting generally speaking.&lt;/P&gt;
&lt;P&gt;Any classifier should be a value in a classifer column, not a variable/column itself.&lt;/P&gt;
&lt;P&gt;So I would create a "Vn" column, with values 1, 2 and 3 respectively.&lt;/P&gt;
&lt;P&gt;This will give you more flexibility when creating reports, and also being more tolerant for New V's (V4 etc).&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 11:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/785732#M15689</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-12-13T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart for binary data</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/785735#M15690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your answer. The data presented in the post is just an extract from a larger table having over 100 columns and a few million records. This data is calculated data rather than raw data. The data can have further transformations, but the question was if the desired chart can be created in SAS Visual Analytics using the data as it is now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;smm662002&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 12:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/785735#M15690</guid>
      <dc:creator>smm662002</dc:creator>
      <dc:date>2021-12-13T12:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart for binary data</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/785756#M15691</link>
      <description>&lt;P&gt;It's not a lucky design choice to have the category or group items as variables, in this case v1, v2, v3.&lt;/P&gt;
&lt;P&gt;Your table should be transposed as it is in wide format but you need a long format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ok.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66701iC4A8CA416E8E9D4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="ok.png" alt="ok.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
array x  v1 v2 v3;
do i=1 to 50;
do over x;
x=rand("bernoulli", 0.8 + min(0.2, max(-0.8, rand("normal", 0,1))));
end;
output;
end;

run;

proc transpose data= test1 out=test2;
var v:;
by i;
run;

data public.test2(promote=yes);
set test2;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Dec 2021 14:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/785756#M15691</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-12-13T14:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart for binary data</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/789999#M15741</link>
      <description>&lt;P&gt;Now I had some time to play around.&lt;/P&gt;
&lt;P&gt;And I can't see that this can be done OOTB.&lt;/P&gt;
&lt;P&gt;Since your data is already calclated you might be able to adjust that, so it suits general reporting/analysis needs.&lt;/P&gt;
&lt;P&gt;As stated intially, and by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;,&amp;nbsp;make life easier by transposing your data.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 14:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bar-chart-for-binary-data/m-p/789999#M15741</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-01-13T14:53:32Z</dc:date>
    </item>
  </channel>
</rss>

