<?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: How to select the most recent date in a drop down box in Visual Analytics in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836953#M16518</link>
    <description>&lt;P&gt;I have a date data item and I can sort on it in a drop down list.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_0-1664979343943.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75909iE703477EECA5C568/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_0-1664979343943.png" alt="KeithM_0-1664979343943.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I right mouse click on the drop down list, I get the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_1-1664979443949.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75910iD5340CE72EE9F930/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_1-1664979443949.png" alt="KeithM_1-1664979443949.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 14:17:54 GMT</pubDate>
    <dc:creator>KeithM</dc:creator>
    <dc:date>2022-10-05T14:17:54Z</dc:date>
    <item>
      <title>How to select the most recent date in a drop down box in Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836888#M16517</link>
      <description>&lt;P&gt;In a Visual Analytics report in SAS VIYA 3.5, I have a drop down box to select the date for which to show the data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By default, I want to show the current situation, i.e. the last date present in the data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the settings for a drop down box,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;there is an "Initially select first item" check box&lt;/STRONG&gt;, but no option to initially select the last, nor an option to sort in reverse order.&lt;/P&gt;&lt;P&gt;The solution suggested in different forums is to &lt;STRONG&gt;change the sort order of the data item&lt;/STRONG&gt; used in the drop down&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the in data pane&lt;STRONG&gt;. However that only works with so called "categorical" variables and SAS VA does not see dates as categorical variables.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does anyone know a workaround?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For completeness: a picture in the data pane, date variables are shown with a calendar icon (In this case the date is calculated from a time stamp. That is why there is a calculator in the icon too.) Categorical variables are shown with a tree legged symbol. The context menu for categorical variables has a Custom sort option. That for dates not.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DirkHorsten_1-1664958992313.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75895i73803705DC9DED3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DirkHorsten_1-1664958992313.png" alt="DirkHorsten_1-1664958992313.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 08:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836888#M16517</guid>
      <dc:creator>DirkHorsten</dc:creator>
      <dc:date>2022-10-05T08:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the most recent date in a drop down box in Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836953#M16518</link>
      <description>&lt;P&gt;I have a date data item and I can sort on it in a drop down list.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_0-1664979343943.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75909iE703477EECA5C568/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_0-1664979343943.png" alt="KeithM_0-1664979343943.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I right mouse click on the drop down list, I get the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_1-1664979443949.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75910iD5340CE72EE9F930/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_1-1664979443949.png" alt="KeithM_1-1664979443949.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 14:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836953#M16518</guid>
      <dc:creator>KeithM</dc:creator>
      <dc:date>2022-10-05T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the most recent date in a drop down box in Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836974#M16520</link>
      <description>&lt;P&gt;Thanks KeithM, but this does not work, probably because we are running a different version of SAS VIYA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;84   %put _automatic_;
AUTOMATIC AFDSID 0
...
AUTOMATIC SYSVER V.03.05 
AUTOMATIC SYSVLONG V.03.05M0P111119
AUTOMATIC SYSVLONG4 V.03.05M0P11112019
...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me, clicking the right mouse button on the dots left of the drop down box gives&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DirkHorsten_0-1664981203974.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75917i5CF75F48E08E67FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DirkHorsten_0-1664981203974.png" alt="DirkHorsten_0-1664981203974.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have the impression you put your dropdown box in the page controls. I put it on the page itself, because it should not filter the whole page.&lt;BR /&gt;So I just tried putting a similar drop down in the page controls, but that did not resolve the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 15:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836974#M16520</guid>
      <dc:creator>DirkHorsten</dc:creator>
      <dc:date>2022-10-05T15:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the most recent date in a drop down box in Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836978#M16521</link>
      <description>&lt;P&gt;Don't click on the three dots.&amp;nbsp; Right mouse click in the body of the drop down.&amp;nbsp; Where the X is in my screen capture.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KeithM_0-1664982606552.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75918iCE455561C31FF761/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KeithM_0-1664982606552.png" alt="KeithM_0-1664982606552.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 15:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-select-the-most-recent-date-in-a-drop-down-box-in-Visual/m-p/836978#M16521</guid>
      <dc:creator>KeithM</dc:creator>
      <dc:date>2022-10-05T15:10:20Z</dc:date>
    </item>
  </channel>
</rss>

