<?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: making bar chart from time intervals in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/making-bar-chart-from-time-intervals/m-p/691321#M14302</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A calculated item that computes &lt;STRONG&gt;periodend - periodstart&lt;/STRONG&gt; should yield the number of days between the two dates. Because the numeric minus operator expects a number, you need to use the TreatAs() operator to perform subtraction on the date variables. That will look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TreatAs(_Number_, 'periodend'n) - TreatAs(_Number_, 'periodstart'n)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Schedule Chart object might also be of interest here, if it is available in the version of VA that you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 15:51:08 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2020-10-13T15:51:08Z</dc:date>
    <item>
      <title>making bar chart from time intervals</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/making-bar-chart-from-time-intervals/m-p/691201#M14300</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble making a bar chart from time intervals.&lt;/P&gt;&lt;P&gt;I have a start date (periodstart) and an end date (periodend) per customerID and I would like to make a bar chart per month from this data. The problem is that I don't know how to create an interval and that an interval can contain multiple months. Can somebody help me with this?&lt;/P&gt;&lt;P&gt;My dates look like this:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;periodstart&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;periodend&lt;/P&gt;&lt;P&gt;200&amp;nbsp; &amp;nbsp; &amp;nbsp; 10JAN2018&amp;nbsp; &amp;nbsp; &amp;nbsp; 15MAR2018&lt;/P&gt;&lt;P&gt;201&amp;nbsp; &amp;nbsp; &amp;nbsp; 21FEB2018&amp;nbsp; &amp;nbsp; &amp;nbsp; 14DEC2018&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 11:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/making-bar-chart-from-time-intervals/m-p/691201#M14300</guid>
      <dc:creator>Qvika</dc:creator>
      <dc:date>2020-10-13T11:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: making bar chart from time intervals</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/making-bar-chart-from-time-intervals/m-p/691321#M14302</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A calculated item that computes &lt;STRONG&gt;periodend - periodstart&lt;/STRONG&gt; should yield the number of days between the two dates. Because the numeric minus operator expects a number, you need to use the TreatAs() operator to perform subtraction on the date variables. That will look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TreatAs(_Number_, 'periodend'n) - TreatAs(_Number_, 'periodstart'n)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Schedule Chart object might also be of interest here, if it is available in the version of VA that you have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 15:51:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/making-bar-chart-from-time-intervals/m-p/691321#M14302</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-10-13T15:51:08Z</dc:date>
    </item>
  </channel>
</rss>

