<?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: WeekNumber as Time or Date Format in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/457197#M9983</link>
    <description>&lt;P&gt;A week number is not a date or a time.&amp;nbsp; A date is number of days since the cuttoff point, time is number of seconds since 00:00.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Week number alone is not sufficient information to present data across years.&amp;nbsp; Year at minimum is required.&amp;nbsp; Therefore you need to check the requirements of the output, and suggest that week be used in conjunction with year to present data accurately, otherwise is week 1 the first week of 2017 or 2018?&amp;nbsp; You know that as you have the year the reviewer does not.&amp;nbsp; I would suggest putting the date into Year-Week format, then displaying that.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 09:51:43 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-04-25T09:51:43Z</dc:date>
    <item>
      <title>WeekNumber as Time or Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/457194#M9982</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been using WeekNumber('Date Curing (Shift)'n) function to extract the Week number from the Date. The default format is Numeric and I want to have it in Date or Time Format as I am using this as a category in Bar Chart and I want to see the order of the dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For eg : If I select the dates from &lt;STRONG&gt;15 DEC 2017 - 15 JAN 2018&lt;/STRONG&gt; It should display the WEEK NUMBER &lt;STRONG&gt;51 52 01 02&lt;/STRONG&gt; in this order but due to its Numeric Data Type it is showing in the order &lt;STRONG&gt;01 02 51 52 .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any way to change the format or any other calculation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 09:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/457194#M9982</guid>
      <dc:creator>narulap</dc:creator>
      <dc:date>2018-04-25T09:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNumber as Time or Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/457197#M9983</link>
      <description>&lt;P&gt;A week number is not a date or a time.&amp;nbsp; A date is number of days since the cuttoff point, time is number of seconds since 00:00.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Week number alone is not sufficient information to present data across years.&amp;nbsp; Year at minimum is required.&amp;nbsp; Therefore you need to check the requirements of the output, and suggest that week be used in conjunction with year to present data accurately, otherwise is week 1 the first week of 2017 or 2018?&amp;nbsp; You know that as you have the year the reviewer does not.&amp;nbsp; I would suggest putting the date into Year-Week format, then displaying that.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 09:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/457197#M9983</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-25T09:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNumber as Time or Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/457623#M9995</link>
      <description>&lt;P&gt;I think there is no default format for YEAR-WEEK as well.&lt;/P&gt;&lt;P&gt;I have added a drop down for YEAR along with the weeks. Its working fine now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 07:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/457623#M9995</guid>
      <dc:creator>narulap</dc:creator>
      <dc:date>2018-04-26T07:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNumber as Time or Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/458704#M10030</link>
      <description>&lt;P&gt;I have also used the approach of tracking the WeekNumber values&amp;nbsp;by using&amp;nbsp;a Year value dropdown list.&amp;nbsp; The drawback is that you cannot then visualize across the calendar year boundaries.&amp;nbsp; Since the customer really wanted to see a date (and not a week number) I found it easy to just choose a date value for each week (Saturday date value&amp;nbsp;in my case) then use that date to represent the week in question. It works well&amp;nbsp;and I actually compute it directly from the date values using the&amp;nbsp;intnx function, in&amp;nbsp;SAS code&amp;nbsp;in the source data processing step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI for&amp;nbsp;general use,&amp;nbsp;the WeekNumber as calculated by the WeekNumber function can result in values of 00 or 53, depending on the year.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/458704#M10030</guid>
      <dc:creator>mskatymay</dc:creator>
      <dc:date>2018-04-30T15:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNumber as Time or Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/459339#M10069</link>
      <description>&lt;P&gt;Exactly, it depends upon the customer how he wants to see the output and it should be relevant with the filters used. I have added date variable in a slider and then used weeks in a Bar chart to show the output.&lt;/P&gt;&lt;P&gt;Thanks for your Input&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/7668"&gt;@mskatymay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 14:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/WeekNumber-as-Time-or-Date-Format/m-p/459339#M10069</guid>
      <dc:creator>narulap</dc:creator>
      <dc:date>2018-05-02T14:47:24Z</dc:date>
    </item>
  </channel>
</rss>

