<?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 First date of a group in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854062#M16827</link>
    <description>&lt;P&gt;Hi, i want to extract the first date of a group, trying to use IF(...) combinded with min(..) but that doesn't seem to work with date. I want the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; DATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WANTED&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2001-01-01&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-08-10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2001-01-01&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;2001-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2001-01-01&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp;2020-05-02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2018-01-03&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp;2018-01-03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018-01-03&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-08-08&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-08-08&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-08-08&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2022-08-08&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-10-15&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2022-08-08&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do someone have a solution to this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards Filip&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 09:48:57 GMT</pubDate>
    <dc:creator>FilipAxelsson</dc:creator>
    <dc:date>2023-01-17T09:48:57Z</dc:date>
    <item>
      <title>First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854062#M16827</link>
      <description>&lt;P&gt;Hi, i want to extract the first date of a group, trying to use IF(...) combinded with min(..) but that doesn't seem to work with date. I want the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; DATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WANTED&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2001-01-01&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-08-10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2001-01-01&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp;2001-01-01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2001-01-01&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp;2020-05-02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2018-01-03&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp;2018-01-03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018-01-03&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-08-08&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2022-08-08&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-08-08&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2022-08-08&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp;2022-10-15&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2022-08-08&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do someone have a solution to this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards Filip&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 09:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854062#M16827</guid>
      <dc:creator>FilipAxelsson</dc:creator>
      <dc:date>2023-01-17T09:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854064#M16828</link>
      <description>&lt;P&gt;Are the dates sas-dates or strings?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 10:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854064#M16828</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2023-01-17T10:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854066#M16829</link>
      <description>I want them as SAS-dates since i then want to calculate the amount of days from the first date until now.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 10:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854066#M16829</guid>
      <dc:creator>FilipAxelsson</dc:creator>
      <dc:date>2023-01-17T10:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854070#M16831</link>
      <description>&lt;P&gt;Is this a Visual Analytics question?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 11:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854070#M16831</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2023-01-17T11:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854075#M16832</link>
      <description>&lt;P&gt;Yes this is a SAS VA question&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 12:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854075#M16832</guid>
      <dc:creator>FilipAxelsson</dc:creator>
      <dc:date>2023-01-17T12:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854090#M16835</link>
      <description>&lt;P&gt;I can give you a Base SAS code solution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
format wanted yymmddd10.;
wanted = '31dec9999'd;
do until (last.id);
  set have;
  by id;
  wanted = min(wanted,date);
end;
do until (last.id);
  set have;
  by id;
  output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jan 2023 14:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854090#M16835</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-17T14:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854092#M16836</link>
      <description>&lt;P&gt;That is sas code, im looking for a solution in SAS VA, Visual Analytics&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 14:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854092#M16836</guid>
      <dc:creator>FilipAxelsson</dc:creator>
      <dc:date>2023-01-17T14:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854109#M16837</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438558"&gt;@FilipAxelsson&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I want them as SAS-dates since i then want to calculate the amount of days from the first date until now.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Does not answer the question. "Want" is not the response to an "are they" question.&lt;/P&gt;
&lt;P&gt;The reason the question about if the values are currently date values is that if they are then they are numeric and query asking for the MINIMUM value by group would work. Character values, depending on how they are created may not work consistently with aggregates like Minimum.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 15:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854109#M16837</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-17T15:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854141#M16838</link>
      <description>Create a summary table with the ID and minimum of date field. &lt;BR /&gt;Merge that back in with the original table by ID.&lt;BR /&gt;&lt;BR /&gt;PS Assuming you're using Data Studio - Prepare Data&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jan 2023 16:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854141#M16838</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-01-17T16:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854280#M16845</link>
      <description>Yes I understand that, and I misread the question but I thought I replayed again and clarified it was sas-date.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jan 2023 08:19:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854280#M16845</guid>
      <dc:creator>FilipAxelsson</dc:creator>
      <dc:date>2023-01-18T08:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854516#M16857</link>
      <description>Could it work by create numeric variables of the dates and then use the aggregate table function to get min/max per id, and then calculate the days?&lt;BR /&gt;BR&lt;BR /&gt;Fredrik</description>
      <pubDate>Thu, 19 Jan 2023 10:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854516#M16857</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2023-01-19T10:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854524#M16861</link>
      <description>I haven’t tried that, it might work. Then the min function in the aggregated table have to work in a different way than the min function. But I will definitely try this!&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Jan 2023 10:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/854524#M16861</guid>
      <dc:creator>FilipAxelsson</dc:creator>
      <dc:date>2023-01-19T10:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/855598#M16898</link>
      <description>The DOW technique</description>
      <pubDate>Wed, 25 Jan 2023 16:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/855598#M16898</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2023-01-25T16:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: First date of a group</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/855635#M16900</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;The DOW technique&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Exactly. Learned it here on the communities.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 19:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/First-date-of-a-group/m-p/855635#M16900</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-25T19:55:07Z</dc:date>
    </item>
  </channel>
</rss>

