<?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 Max connection date of users in a table : works only with TreastAs number ?! in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457271#M9985</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;Here is my situation : I have a datasource with a row for each connection of a username in a system.&lt;/P&gt;&lt;P&gt;I'm building a report with many statistics, and in the last tab, I want to display in a table the most recent connection date for each users.&lt;/P&gt;&lt;P&gt;I've been fighting with this&amp;nbsp;and can't stand it now.&lt;/P&gt;&lt;P&gt;Using Rank does not work, since it either shows multiple dates for each users or only the group of users that gets connected on the most recent date (like today or yesterday). For those who got connected earlier, they are treated as "others" and not displayed !&lt;/P&gt;&lt;P&gt;I found a way to display the table properly but it ONLY WORKS when the date is converted to a number TreasAs...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First : basic table with names &amp;amp; date, you see that there are as many rows as date &amp;amp; username.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-04-25_15-29-24.png" style="width: 381px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20135i5B468AB776780562/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-04-25_15-29-24.png" alt="2018-04-25_15-29-24.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, if i try to create a rank on a TreasAs Date (number), then it only shows the group of people that get connected on the most recent day together, the others are treated separetly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="2018-04-25_15-31-01.png" style="width: 343px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20136i682BA78BB63A8B40/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-04-25_15-31-01.png" alt="2018-04-25_15-31-01.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-04-25_15-30-17.png" style="width: 338px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20134iA8079E6CE9233A20/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-04-25_15-30-17.png" alt="2018-04-25_15-30-17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then if I only put in the table the&amp;nbsp;&lt;SPAN&gt;TreasAs Date (number), it WORKS ! I have my most recent date for each and all users, but in a numeric format !!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HELP !!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&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="2018-04-25_15-28-16.png" style="width: 418px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20137iCBCB1F62827F9EC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-04-25_15-28-16.png" alt="2018-04-25_15-28-16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 13:35:06 GMT</pubDate>
    <dc:creator>VictorM</dc:creator>
    <dc:date>2018-04-25T13:35:06Z</dc:date>
    <item>
      <title>Max connection date of users in a table : works only with TreastAs number ?!</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457271#M9985</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;Here is my situation : I have a datasource with a row for each connection of a username in a system.&lt;/P&gt;&lt;P&gt;I'm building a report with many statistics, and in the last tab, I want to display in a table the most recent connection date for each users.&lt;/P&gt;&lt;P&gt;I've been fighting with this&amp;nbsp;and can't stand it now.&lt;/P&gt;&lt;P&gt;Using Rank does not work, since it either shows multiple dates for each users or only the group of users that gets connected on the most recent date (like today or yesterday). For those who got connected earlier, they are treated as "others" and not displayed !&lt;/P&gt;&lt;P&gt;I found a way to display the table properly but it ONLY WORKS when the date is converted to a number TreasAs...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First : basic table with names &amp;amp; date, you see that there are as many rows as date &amp;amp; username.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-04-25_15-29-24.png" style="width: 381px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20135i5B468AB776780562/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-04-25_15-29-24.png" alt="2018-04-25_15-29-24.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second, if i try to create a rank on a TreasAs Date (number), then it only shows the group of people that get connected on the most recent day together, the others are treated separetly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="2018-04-25_15-31-01.png" style="width: 343px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20136i682BA78BB63A8B40/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-04-25_15-31-01.png" alt="2018-04-25_15-31-01.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-04-25_15-30-17.png" style="width: 338px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20134iA8079E6CE9233A20/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-04-25_15-30-17.png" alt="2018-04-25_15-30-17.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then if I only put in the table the&amp;nbsp;&lt;SPAN&gt;TreasAs Date (number), it WORKS ! I have my most recent date for each and all users, but in a numeric format !!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HELP !!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&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="2018-04-25_15-28-16.png" style="width: 418px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20137iCBCB1F62827F9EC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-04-25_15-28-16.png" alt="2018-04-25_15-28-16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457271#M9985</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2018-04-25T13:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max connection date of users in a table : works only with TreastAs number ?!</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457308#M9986</link>
      <description>&lt;P&gt;Please do NOT post data in pictures. See the links in my footnote for advice on posting example data.&lt;/P&gt;
&lt;P&gt;A data step allows all possible helpers to recreate your dataset with a simple copy/paste and submit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A proc sql solution would look like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select userid, max(connection_date) as maxdate
from have
group by userid;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457308#M9986</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-25T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max connection date of users in a table : works only with TreastAs number ?!</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457341#M9987</link>
      <description>&lt;P&gt;ok thanks for the advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the proc solution is not a good one, since it will remove all the "detailed data" i need for other graphs and table in my report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457341#M9987</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2018-04-25T15:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Max connection date of users in a table : works only with TreastAs number ?!</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457387#M9990</link>
      <description>&lt;P&gt;About the display of dates: you need to assign a date format to the newly created variable, which would be yymmdd10. in your case.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457387#M9990</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-25T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Max connection date of users in a table : works only with TreastAs number ?!</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457391#M9991</link>
      <description>&lt;P&gt;That's what I thought also, but the date format is not available :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/20142i4C761F510E8E67F6/image-size/large?v=1.0&amp;amp;px=-1" border="0" width="345" height="393" title="2018-04-25_18-32-05.png" alt="2018-04-25_18-32-05.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I also tried to re-create a&amp;nbsp;calculated item from the numbered date format to a real date format using but then the behaviour comes back to the detailed view and not the (max) date.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Max-connection-date-of-users-in-a-table-works-only-with-TreastAs/m-p/457391#M9991</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2018-04-25T16:33:20Z</dc:date>
    </item>
  </channel>
</rss>

