<?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: How do I create non-categorized cross tab in SAS VA 7.1 in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/377659#M7700</link>
    <description>&lt;P&gt;What does your input data look like? Please explain what a cell containing the value 7 with a column label of Mango and a row label of Apple actually mean? Are we missing another data dimension?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 07:12:50 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-07-20T07:12:50Z</dc:date>
    <item>
      <title>How do I create non-categorized cross tab in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/377593#M7699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a non-hierarchical/non-categorized/ cross tab in SAS Visual Analytics 7.1 which would look something like the screenshot attached. I am trying to create such a table but it splits up columns which is not a desirable display for my business purpose. I would highly appreciate any leads in this regard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14105i290DC9354156FBA0/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="doubt1.PNG" title="doubt1.PNG" /&gt;</description>
      <pubDate>Wed, 19 Jul 2017 21:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/377593#M7699</guid>
      <dc:creator>nikita2</dc:creator>
      <dc:date>2017-07-19T21:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create non-categorized cross tab in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/377659#M7700</link>
      <description>&lt;P&gt;What does your input data look like? Please explain what a cell containing the value 7 with a column label of Mango and a row label of Apple actually mean? Are we missing another data dimension?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 07:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/377659#M7700</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-07-20T07:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create non-categorized cross tab in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/377817#M7704</link>
      <description>&lt;P&gt;I have transactional data in which I want to see shopping patterns of customers. In the data, for each customer, I have a binary column for each of the items- Apple, Mango, Banana, Orange. I am trying to visualize co-occurence matrix to understand how many customers bought Apple and Mango together, how many purchased Apples, Mangoes and so on. I am interested to see counts across these combinations and individual items overall for my data. Attached is the screenshot of how my data looks like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14116i1C70190C10DCC630/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="doubt2.PNG" title="doubt2.PNG" /&gt;</description>
      <pubDate>Thu, 20 Jul 2017 15:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/377817#M7704</guid>
      <dc:creator>nikita2</dc:creator>
      <dc:date>2017-07-20T15:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create non-categorized cross tab in SAS VA 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/378478#M7715</link>
      <description>&lt;P&gt;OK, so you are trying to do market basket analysis. I think you will need to transform your data like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fruit;
  input customer 
        apple
        banana
        mango
        orange
        ;
datalines;
1         1        1        0        0
2         1        0        1        1
3         0        0        1        1
4         0        1        1        0
5         1        1        1        1
;
run;

data fruit2;
  keep customer fruit1 fruit2 count;
  set fruit;
  array fruits (*) apple banana mango orange;
  do i = 1 to dim(fruits);
    if fruits(i) = 1 then do j = i to dim(fruits);
      if fruits(j) = 1 then do;
        fruit1 = vname(fruits(i));
        fruit2 = vname(fruits(j));
        count = 1;
        output;
      end;
    end;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can try a cross tab on the columns fruit1 and fruit2.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2017 23:55:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-non-categorized-cross-tab-in-SAS-VA-7-1/m-p/378478#M7715</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-07-22T23:55:41Z</dc:date>
    </item>
  </channel>
</rss>

