<?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: DATETIME variable converted from from NLADATMYWw to YEAR format when going from query to explora in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/DATETIME-variable-converted-from-from-NLADATMYWw-to-YEAR-format/m-p/384133#M7748</link>
    <description>&lt;P&gt;I will have to try this! Do you know if this concatenated item will still be a datetime format? I would like for it to remain that way so I can utilize it in a time series animation&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 02:34:28 GMT</pubDate>
    <dc:creator>ewv</dc:creator>
    <dc:date>2017-07-31T02:34:28Z</dc:date>
    <item>
      <title>DATETIME variable converted from from NLADATMYWw to YEAR format when going from query to exploration</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/DATETIME-variable-converted-from-from-NLADATMYWw-to-YEAR-format/m-p/377795#M7703</link>
      <description>&lt;P&gt;I am trying to convert a&amp;nbsp;datetime variable to NLADATMYWw. fomat&amp;nbsp;as shown in the picture below (query&amp;nbsp;properties)&amp;nbsp;by using the SAS VA Data Preparation tool&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Query properties.JPG" alt="Query properties.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/10425i9E40FE88A444DAA5/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I preview this query and view the results within the Data Preparation application, it looks like this (Results of query), which is exactly the format I want it to be in (Calendar week followed by a year).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Results of Query.JPG" alt="Results of Query.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/10426i3E7930EFCC942B44/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the query and try to open the newly generated table in either the Exploration or Report Designer application, it converts to a year format (see below, Datetime Format in Exploration). I have no options to change the format within the Exploration or Report Designer application back to what I want (I know that you can change the format, but the Calendar week, Year option is not avaliable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="Query properties.JPG" alt="Query properties.JPG" src="https://communities.sas.com/t5/image/serverpage/image-id/10424i57E597722BE026C4/image-size/original?v=1.0&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any reason why this the Exploration or Report Designed application would change this to a year format rather than keep the format I specified in the query? I would like to separate a bunch of data by calendar week so the NLADATMYWw. format is perfect for me, but just doesn't seem to stay in that format in the other SAS VA applications.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14113i5F6FD32DB48153BD/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Datetime format in Exploration.JPG" title="Datetime format in Exploration.JPG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14114i3C5C1C4905C1A6FB/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Query properties.JPG" title="Query properties.JPG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14115i28ED6CDF7FA7612B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Results of Query.JPG" title="Results of Query.JPG" /&gt;</description>
      <pubDate>Thu, 20 Jul 2017 14:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/DATETIME-variable-converted-from-from-NLADATMYWw-to-YEAR-format/m-p/377795#M7703</guid>
      <dc:creator>ewv</dc:creator>
      <dc:date>2017-07-20T14:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: DATETIME variable converted from from NLADATMYWw to YEAR format when going from query to explora</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/DATETIME-variable-converted-from-from-NLADATMYWw-to-YEAR-format/m-p/378871#M7722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You could create the formatted week yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First create a calculated item&amp;nbsp; _WeekNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_WeekNumber =&amp;nbsp; WeekNumber('ENTRY_DATE'n)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create the formatted week as a new calculated item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formatted Week =&lt;/P&gt;&lt;P&gt;Concatenate('week ', Concatenate(Concatenate(Format('_WeekNumber'n, 'BEST2.'), ' '), Format('ENTRY_DATE'n[Raw], 'YEAR4.')))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 06:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/DATETIME-variable-converted-from-from-NLADATMYWw-to-YEAR-format/m-p/378871#M7722</guid>
      <dc:creator>AMos</dc:creator>
      <dc:date>2017-07-25T06:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: DATETIME variable converted from from NLADATMYWw to YEAR format when going from query to explora</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/DATETIME-variable-converted-from-from-NLADATMYWw-to-YEAR-format/m-p/384133#M7748</link>
      <description>&lt;P&gt;I will have to try this! Do you know if this concatenated item will still be a datetime format? I would like for it to remain that way so I can utilize it in a time series animation&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 02:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/DATETIME-variable-converted-from-from-NLADATMYWw-to-YEAR-format/m-p/384133#M7748</guid>
      <dc:creator>ewv</dc:creator>
      <dc:date>2017-07-31T02:34:28Z</dc:date>
    </item>
  </channel>
</rss>

