<?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: Crosstab Dates in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574340#M12781</link>
    <description>Yes, Anca, that is exactly the result I want except I'm trying to get that result in SAS Visual Analytics. Thank you so much for this...I'm sure I can use that bit of code in EG for other projects.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Jul 2019 19:25:37 GMT</pubDate>
    <dc:creator>ANON4</dc:creator>
    <dc:date>2019-07-17T19:25:37Z</dc:date>
    <item>
      <title>Crosstab Dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574271#M12778</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; Is there a way to display a measure as a date in a crosstab in Visual Analytics?&amp;nbsp; I'm not asking about displaying a date as a row or column.&amp;nbsp; I'm asking how to display the crosstab cells (measure) as a date.&amp;nbsp; I see there are numerous formats (comma, currency, dollar, euro, etc.) that can be applied but displaying a number as a date doesn't appear to be one of them.&amp;nbsp; I'm trying to show, in crosstab form, the date an event (column) occurred for an individual (row).&amp;nbsp; I've tried using a normal list for this but the crosstab output is much preferred.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 11:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574271#M12778</guid>
      <dc:creator>ANON4</dc:creator>
      <dc:date>2019-07-18T11:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstab Dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574334#M12779</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not quite sure I understand the output desired, by my friend and I have worked out this little code that might be helpful:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input id date $ 3-13 event ;&lt;BR /&gt;mydate = mdy(substr(date, 1,2),substr(date,4,2), substr(date,7,4));&lt;BR /&gt;format myDate date9.;&lt;BR /&gt;datalines;&lt;BR /&gt;1 11/23/2014 0&lt;BR /&gt;2 10/23/2014 0&lt;BR /&gt;2 11/23/2014 1&lt;BR /&gt;1 10/23/2016 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;proc print;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;proc report data = have;&lt;BR /&gt;column id event, (mydate);&lt;BR /&gt;define id/group;&lt;BR /&gt;define event/across;&lt;BR /&gt;define myDate/group;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574334#M12779</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2019-07-17T19:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstab Dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574337#M12780</link>
      <description>&lt;P&gt;When you say you want to treat the measure as a date, is the measure a number of days?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574337#M12780</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2019-07-17T19:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstab Dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574340#M12781</link>
      <description>Yes, Anca, that is exactly the result I want except I'm trying to get that result in SAS Visual Analytics. Thank you so much for this...I'm sure I can use that bit of code in EG for other projects.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574340#M12781</guid>
      <dc:creator>ANON4</dc:creator>
      <dc:date>2019-07-17T19:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstab Dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574341#M12782</link>
      <description>&lt;P&gt;Hello, Madelyn. No, I would like to see the date of an occurrence at the intersection of an individual's ID and an event. The screen shot is the result of Anca's code. However, I need to produce this result in Visual Analytics.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 202px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31096iBA56F119DEF21F80/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574341#M12782</guid>
      <dc:creator>ANON4</dc:creator>
      <dc:date>2019-07-17T19:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstab Dates</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574353#M12783</link>
      <description>&lt;P&gt;If the values that you want to be displayed as dates are stored in the dataset as numeric, as in the case of my VA dataset, a similar result to your PROC REPORT can be achieved using PROC TABULATE.&amp;nbsp; I just cannot figure out how to do this in Visual Analytics.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; have_num;&lt;/P&gt;&lt;P&gt;input id date event;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 20050 0&lt;/P&gt;&lt;P&gt;2 20019 0&lt;/P&gt;&lt;P&gt;2 20050 1&lt;/P&gt;&lt;P&gt;1 20750 1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;tabulate&lt;/STRONG&gt; =have_num format=date11.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class id event;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table id, event*date*max=' '; /*max used for one date per event*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var date;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&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="Capture2.PNG" style="width: 225px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31097i55179CA1BAF2846B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 20:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Crosstab-Dates/m-p/574353#M12783</guid>
      <dc:creator>ANON4</dc:creator>
      <dc:date>2019-07-17T20:06:24Z</dc:date>
    </item>
  </channel>
</rss>

