<?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: Custom Sort of &amp;quot;Day of Week&amp;quot; Calculated Item in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583570#M12976</link>
    <description>&lt;P&gt;Thanks, that would work.&amp;nbsp; I took a different, but similar, path - I created a&amp;nbsp;custom category called "Offence DOW"&amp;nbsp;based on my "Offence Day of Week" values and used them instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="custom category.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31995iBB35F8F0A681BCD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="custom category.jpg" alt="custom category.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 17:51:41 GMT</pubDate>
    <dc:creator>blewsas</dc:creator>
    <dc:date>2019-08-23T17:51:41Z</dc:date>
    <item>
      <title>Custom Sort of "Day of Week" Calculated Item</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/582970#M12953</link>
      <description>&lt;P&gt;I have created a "Day of Week" calculated item from a date field.&amp;nbsp; I'd like to apply a custom sort so that the first day of the week is Monday, rather than Sunday.&amp;nbsp; However, when I right-click on the "Day of Week" category, the "custom sort" option is not available.&amp;nbsp; Any ideas?&amp;nbsp; SAS VA 8.3&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 19:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/582970#M12953</guid>
      <dc:creator>blewsas</dc:creator>
      <dc:date>2019-08-21T19:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Sort of "Day of Week" Calculated Item</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583065#M12958</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Are you creating a string variable with the weekday name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not maybe you should try that, it might solve both the sorting and the difference between the editor and report mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 06:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583065#M12958</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-08-22T06:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Sort of "Day of Week" Calculated Item</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583279#M12962</link>
      <description>&lt;P&gt;my calculation is&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;STRONG&gt;DatePart('Offence TMST'n)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;And I am applying the "Day of Week" format to this.&lt;BR /&gt;&lt;BR /&gt;What should I be doing differently?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 22:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583279#M12962</guid>
      <dc:creator>blewsas</dc:creator>
      <dc:date>2019-08-22T22:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Sort of "Day of Week" Calculated Item</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583347#M12966</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;P class="lia-message-dates lia-message-post-date lia-component-post-date-last-edited"&gt;I deleted the old data item "Offence Day of Week" and created a new one by right-clicking on&amp;nbsp;the "Offence TMST" (datetime) data item and selecting "Duplicate Data Item".&amp;nbsp; I renamed the new item to "Offence Day of Week" and applied the "Day, Date" format.&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-message-body lia-component-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That gives me what I want - &amp;nbsp;"Offence Days of Week" of "Sunday", "Monday", "Tuesday", etc.&amp;nbsp; However, I have the same problem when I view the report - they change to "03Jan1960", "04Jan1960", "05Jan1960", etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I can't custom sort them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help!&amp;nbsp; Very frustrating!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Aug 2019 22:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583347#M12966</guid>
      <dc:creator>blewsas</dc:creator>
      <dc:date>2019-08-22T22:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Sort of "Day of Week" Calculated Item</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583409#M12967</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Try this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new calculated item (character) and add this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( DayOfWeek('Date'n) = 1 )&lt;BR /&gt;RETURN 'Sunday'&lt;BR /&gt;ELSE ( &lt;BR /&gt;IF ( DayOfWeek('Date'n) = 2 )&lt;BR /&gt;RETURN 'Monday'&lt;BR /&gt;ELSE ( &lt;BR /&gt;IF ( DayOfWeek('Date'n) = 3 )&lt;BR /&gt;RETURN 'Tuesday'&lt;BR /&gt;ELSE ( &lt;BR /&gt;IF ( DayOfWeek('Date'n) = 4 )&lt;BR /&gt;RETURN 'Wednesday'&lt;BR /&gt;ELSE ( &lt;BR /&gt;IF ( DayOfWeek('Date'n) = 5 )&lt;BR /&gt;RETURN 'Thursday'&lt;BR /&gt;ELSE ( &lt;BR /&gt;IF ( DayOfWeek('Date'n) = 6 )&lt;BR /&gt;RETURN 'Friday'&lt;BR /&gt;ELSE ( &lt;BR /&gt;IF ( DayOfWeek('Date'n) = 7 )&lt;BR /&gt;RETURN 'Saturday'&lt;BR /&gt;ELSE '-' ) ) ) ) ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then add the custom sort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 08:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583409#M12967</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-08-23T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Sort of "Day of Week" Calculated Item</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583570#M12976</link>
      <description>&lt;P&gt;Thanks, that would work.&amp;nbsp; I took a different, but similar, path - I created a&amp;nbsp;custom category called "Offence DOW"&amp;nbsp;based on my "Offence Day of Week" values and used them instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="custom category.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31995iBB35F8F0A681BCD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="custom category.jpg" alt="custom category.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 17:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-Sort-of-quot-Day-of-Week-quot-Calculated-Item/m-p/583570#M12976</guid>
      <dc:creator>blewsas</dc:creator>
      <dc:date>2019-08-23T17:51:41Z</dc:date>
    </item>
  </channel>
</rss>

