<?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 Line graph x axis as each day of a time period in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-x-axis-as-each-day-of-a-time-period/m-p/756446#M15131</link>
    <description>&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;I’ve hit a graphing requirement that I'm not quite sure how to tackle in VA 8.3.&amp;nbsp; I’m hoping someone here can point me to an example or tutorial that covers a similar problem in an efficient manner.&amp;nbsp; I have a data set similar to the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;RequestID&lt;/SPAN&gt; &lt;SPAN style="font-weight: 400;"&gt;PersonID&lt;/SPAN&gt; &lt;SPAN style="font-weight: 400;"&gt;StartDate&lt;/SPAN&gt; &lt;SPAN style="font-weight: 400;"&gt;EndDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;1&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;1&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;1Jan21&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;10Jan21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;2&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;2&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;5Jan21&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;5Feb21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;3&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;1&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;20Jan21&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;1Mar21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;I’m trying to create a simple line chart where the x axis is each day of the time period 1Jan21-1Mar21 (min value of StartDate through max value of EndDate).&amp;nbsp; The Y axis is the number of people active, meaning people where the day is between StartDate and EndDate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;To accomplish this goal, I’ve been preparing my data by joining the main data set with another table that has a row for each day of my time period on the condition Day between StartDate and EndDate.&amp;nbsp; This greatly increases the size of my dataset from about 6,000 rows to over 500,000 and slows things down.&amp;nbsp; Is there a way to accomplish this in VA without joining the second table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;Thanks for your insight,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;David&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jul 2021 01:53:10 GMT</pubDate>
    <dc:creator>David12345</dc:creator>
    <dc:date>2021-07-25T01:53:10Z</dc:date>
    <item>
      <title>Line graph x axis as each day of a time period</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-x-axis-as-each-day-of-a-time-period/m-p/756446#M15131</link>
      <description>&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;I’ve hit a graphing requirement that I'm not quite sure how to tackle in VA 8.3.&amp;nbsp; I’m hoping someone here can point me to an example or tutorial that covers a similar problem in an efficient manner.&amp;nbsp; I have a data set similar to the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;RequestID&lt;/SPAN&gt; &lt;SPAN style="font-weight: 400;"&gt;PersonID&lt;/SPAN&gt; &lt;SPAN style="font-weight: 400;"&gt;StartDate&lt;/SPAN&gt; &lt;SPAN style="font-weight: 400;"&gt;EndDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;1&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;1&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;1Jan21&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;10Jan21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;2&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;2&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;5Jan21&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;5Feb21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;3&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;1&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;20Jan21&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;1Mar21&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;I’m trying to create a simple line chart where the x axis is each day of the time period 1Jan21-1Mar21 (min value of StartDate through max value of EndDate).&amp;nbsp; The Y axis is the number of people active, meaning people where the day is between StartDate and EndDate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;To accomplish this goal, I’ve been preparing my data by joining the main data set with another table that has a row for each day of my time period on the condition Day between StartDate and EndDate.&amp;nbsp; This greatly increases the size of my dataset from about 6,000 rows to over 500,000 and slows things down.&amp;nbsp; Is there a way to accomplish this in VA without joining the second table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;Thanks for your insight,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;David&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 01:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-x-axis-as-each-day-of-a-time-period/m-p/756446#M15131</guid>
      <dc:creator>David12345</dc:creator>
      <dc:date>2021-07-25T01:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Line graph x axis as each day of a time period</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-x-axis-as-each-day-of-a-time-period/m-p/756477#M15132</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wouldn't know how to do that in Visual Analytics, but if you are preparing your data anyway, ... why don't you prepare fully to have a dataset with one row per date?&lt;/P&gt;
&lt;P&gt;The program below is only correct if the time ranges for the same person do not overlap.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have1;
input RequestID PersonID StartDate : ANYDTDTE9. EndDate : ANYDTDTE9.;
format StartDate EndDate date9.; 
datalines;
1  1  01Jan2021  10Jan2021
2  2  05Jan2021  05Feb2021
3  1  20Jan2021  01Mar2021
;
run;

data have2(drop=StartDate EndDate);
 set have1;
 do MYDATE=StartDate to EndDate;
  output;
 end;
 format MYDATE date9.;
run;

PROC FREQ data=have2 noprint;
 tables MYDATE / out=WANT_count_MYDATE;
 format MYDATE date9.;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 11:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Line-graph-x-axis-as-each-day-of-a-time-period/m-p/756477#M15132</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-07-25T11:02:51Z</dc:date>
    </item>
  </channel>
</rss>

