<?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: Visual Analytics drop-down box - how to select max value as default in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/551676#M12289</link>
    <description>&lt;P&gt;Hi Dan,&lt;BR /&gt;&lt;BR /&gt;I think the ranking does not directly help you with your issue. But you could set a ranking to select the top 1 date to create an object that always displays the data for the most recent date value.&lt;BR /&gt;&lt;BR /&gt;I'm not sure if that would actually be appropriate for your report, but you seemed interested in showing the most recent date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2019 12:32:07 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2019-04-17T12:32:07Z</dc:date>
    <item>
      <title>Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/549210#M12245</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't often use Visual Analytics so I am sure this is a simple question for someone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm filtering various list tables with drop-down boxes. One of those contains snapshot date &amp;amp; time. Snapshots are taken every 15 minutes and so the drop-down box contains a significant amount of values, and I'd like it to default to the max value every time the report is opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I do that please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 10:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/549210#M12245</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2019-04-08T10:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550236#M12248</link>
      <description>Hi Dan,&lt;BR /&gt;&lt;BR /&gt;I don't think you can do this with a drop-down list but you can do it with a slider.&lt;BR /&gt;&lt;BR /&gt;Sam</description>
      <pubDate>Thu, 11 Apr 2019 14:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550236#M12248</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-04-11T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550245#M12249</link>
      <description>&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen the options for the Date Slider to always utilise the min and max dates, so I'm using that already on a Time Series plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, to see granular information in a List Table I need to be able to select a single datetime only in a filter object - which you can do with a Date Slider, but the Date Slider doesn't "snap" to the 15 minute sections that the datetime column contains. Dragging the filter triangle on the Date Slider results in no information being shown because it'll select something like "09:08:18" instead of "09:15:00", you have to expand the calendar and manually type a Date and Time. It's not a feasible option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 14:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550245#M12249</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2019-04-11T14:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550251#M12251</link>
      <description>I was hoping you could set both carets on the slider to the maximum value, but it doesn't appear possible.&lt;BR /&gt;&lt;BR /&gt;I'll see if the development team has any ideas. In the meantime, maybe someone else on the community can offer a workaround.&lt;BR /&gt;&lt;BR /&gt;Sam</description>
      <pubDate>Thu, 11 Apr 2019 14:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550251#M12251</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-04-11T14:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550260#M12252</link>
      <description>&lt;P&gt;The workaround is actually very simple!&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apply a descending sort to the drop-down list and enable the "Initially select first item" option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm pretty sure this should work, but let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 14:49:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550260#M12252</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-04-11T14:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550265#M12253</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I completely forgot it had a right-click context menu - but I've found the Sort option for the RunDtTm column. Data is now sorted descending...&lt;BR /&gt;&lt;BR /&gt;However, nowhere in the context menu nor any of the options in the right-hand sidebar come close to "initially select first item".&lt;BR /&gt;&lt;BR /&gt;I'm using the drop-down list control option in VA 7.4 hfx10 if that's any help. Maybe this option was brought in with a higher hotfix?</description>
      <pubDate>Thu, 11 Apr 2019 14:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550265#M12253</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2019-04-11T14:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550267#M12254</link>
      <description>Oh no! I was thinking you were on 8.3.&lt;BR /&gt;&lt;BR /&gt;Unfortunately I'm not sure if there is a way to do this on 7.4.</description>
      <pubDate>Thu, 11 Apr 2019 15:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550267#M12254</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-04-11T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550275#M12255</link>
      <description>Ah, good thing I clarified it then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I'll mark your answer anyway as I'm sure it'll help someone who's on a higher version.</description>
      <pubDate>Thu, 11 Apr 2019 15:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550275#M12255</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2019-04-11T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550284#M12256</link>
      <description>Thanks Dan.&lt;BR /&gt;&lt;BR /&gt;For what it's worth, we hope to include this option in the upcoming 7.5 release.</description>
      <pubDate>Thu, 11 Apr 2019 15:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/550284#M12256</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-04-11T15:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/551186#M12270</link>
      <description>&lt;P&gt;Another thought about this -- you could force an object to always show the latest value by using a rank. I don't think that necessarily helps with your drop-down control, but it is another approach to showing the newest value.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 18:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/551186#M12270</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-04-15T18:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/551642#M12285</link>
      <description>Hi Sam&lt;BR /&gt;&lt;BR /&gt;So, with the drop-down boxes I'm happy that you can order by Descending date, but the problem is where the report is saved with "Wednesday 17 2019 09:54:00" as the selected DateTime variable during report development and that is the retained value every single time you open the report - even six months down the line.&lt;BR /&gt;&lt;BR /&gt;Are you suggesting that a rank could be used to manipulate the selected value in the drop-down box upon the report being opened? Is there a way to ensure the rank also doesn't manipulate the data insofar as a "top 10" would ultimately limit the amount of DateTime records available for selection?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2019 10:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/551642#M12285</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2019-04-17T10:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/551676#M12289</link>
      <description>&lt;P&gt;Hi Dan,&lt;BR /&gt;&lt;BR /&gt;I think the ranking does not directly help you with your issue. But you could set a ranking to select the top 1 date to create an object that always displays the data for the most recent date value.&lt;BR /&gt;&lt;BR /&gt;I'm not sure if that would actually be appropriate for your report, but you seemed interested in showing the most recent date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 12:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/551676#M12289</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-04-17T12:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/554019#M12349</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how I've been selecting the max upload date by default. This will require a few different steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In your source data, create a flag that specifies the maximum value of your column of interest. If the column is the max value, it's a 1. If not, it's a 0. Let's call this column "max_upload_date_flag."&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Create a new date parameter called "Upload Date" and attach it to the drop-down list&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;For&amp;nbsp;&lt;EM&gt;every object on the page&lt;/EM&gt;, add the following advanced filter:&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if(missing('Upload Date'p) ) return 'flag_max_upload_date'n = 1
else 1=1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;How does this work?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;When the drop-down list is cleared, the parameter 'Upload Date'p has no value. When it has no value, the object-level filter takes over and only returns the maximum upload date since we've defined the filter to only activate when this condition exists. When the drop-down list is selected, the object filter returns an always-true condition. In other words, the object filter does nothing, and the drop-down filter takes over.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works in VA 7.4, 8.1, 8.2, and 8.3.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2019 16:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/554019#M12349</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2019-04-25T16:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/556692#M12405</link>
      <description>Thanks for your response, I've been on annual leave but will see if I can implement this soon.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 May 2019 08:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/556692#M12405</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2019-05-07T08:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/569113#M12655</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/61362"&gt;@Stu_SAS&lt;/a&gt;, your solution helped solve my problem with display latest set of data in VA 7.4. Thank you</description>
      <pubDate>Wed, 26 Jun 2019 14:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/569113#M12655</guid>
      <dc:creator>romeomai</dc:creator>
      <dc:date>2019-06-26T14:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Analytics drop-down box - how to select max value as default</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/569116#M12656</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15605"&gt;@romeomai&lt;/a&gt;&amp;nbsp;Great to hear! For more tips and tricks on using parameters in VA, see the below whitepaper and example code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/2986-2019.pdf" target="_self"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/2986-2019.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/sascommunities/sas-global-forum-2019/tree/master/2986-2019-Sztukowski" target="_blank"&gt;https://github.com/sascommunities/sas-global-forum-2019/tree/master/2986-2019-Sztukowski&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 14:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-drop-down-box-how-to-select-max-value-as/m-p/569116#M12656</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2019-06-26T14:58:23Z</dc:date>
    </item>
  </channel>
</rss>

