<?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: Selecting a dynamic top 4 per day in SAS VA 7.3 in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Selecting-a-dynamic-top-4-per-day-in-SAS-VA-7-3/m-p/639454#M13653</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, what you are asking for is actually rather difficult.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your data preparation, you could use the RANK procedure to select the top 4 values for each date, but that selection won't be dynamic when you filter by vehicle type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In VA, you can apply rankings on the Ranks tab. These will be dynamic, but they will be ranking for all time instead of for each day. If you filter your table in VA by date as well as vehicle type, you should get the result you want, but you will only see data for one day at a time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone else might have additional ideas, but this is what I can offer off the top of my head.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if my understanding above sounds right, and if this info helps.&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>Mon, 13 Apr 2020 13:25:30 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2020-04-13T13:25:30Z</dc:date>
    <item>
      <title>Selecting a dynamic top 4 per day in SAS VA 7.3</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Selecting-a-dynamic-top-4-per-day-in-SAS-VA-7-3/m-p/638267#M13650</link>
      <description>&lt;P&gt;Hello lads,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm quiet new to the wold of SAS, now I did the following. I have transported a big dataset from SAS EG to SAS VA (7.3). This dataset contains daily measurements like you see below (obviously the dataset is much, much bigger, this is just an example):&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;ID -- Location -- Section -- Date -- Time -- Type -- Value&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;01 -- Germany -- BB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&lt;STRONG&gt;1/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 10:10 -- VW --&amp;nbsp; &amp;nbsp;9,0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;02 -- Germany -- AA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&lt;STRONG&gt;1/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 11:20 -- AU --&amp;nbsp; &amp;nbsp; 7,0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;03 -- Germany -- AA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&lt;STRONG&gt;1/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 13:50 -- AU --&amp;nbsp; &amp;nbsp; 6,0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;04 -- Germany -- BB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&lt;STRONG&gt;1/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 13:50 -- AU --&amp;nbsp; &amp;nbsp; 5,7&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;05 -- Germany -- BB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--1&lt;STRONG&gt;/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 15:10 -- MC --&amp;nbsp; 11,3&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;06 -- Germany -- BB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--1&lt;STRONG&gt;/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 19:10 -- VW --&amp;nbsp; 12,0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;07 -- Germany -- AA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--2&lt;STRONG&gt;/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 15:20 -- OP --&amp;nbsp; &amp;nbsp; 6,7&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;08 -- Germany -- AA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--2&lt;STRONG&gt;/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 15:20 -- AU --&amp;nbsp; &amp;nbsp; 2,0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;09 -- Germany -- BB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--2&lt;STRONG&gt;/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 16:16 -- MC --&amp;nbsp; &amp;nbsp;1,5&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;10 -- Germany -- BB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--2&lt;STRONG&gt;/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 11:45 -- MC --&amp;nbsp; &amp;nbsp;5,8&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;11 -- Germany -- AA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--2&lt;STRONG&gt;/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 09:40 -- OP --&amp;nbsp; &amp;nbsp;2,7&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;12 -- Germany -- AA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--2&lt;STRONG&gt;/1/20&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-- 02:40 -- VW --&amp;nbsp; &amp;nbsp;2,0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;etc...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Now I want to make a time series plot which shows me the top 4 highest values per day. But it has to be dynamic, I want to use use a selection list&amp;nbsp;which allows me to (de)select a specific vehicle-type (or more). If that vehicle&amp;nbsp;type was measured&amp;nbsp;at least 4 times that day I will automatically&amp;nbsp;get a top 4 of that specific vehicle-type. If not, then obviously the time series plot will give me an error.I then have to select extra vehicle-types&amp;nbsp;to complete&amp;nbsp;a top 4 per day.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;It sounds a bit complicated, but the outcome seems very logic, I have a feeling&amp;nbsp;that its possible to workout in SAS VA.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Can someone help me out? I appreciate&amp;nbsp;your help - thank you in advance.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 09:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Selecting-a-dynamic-top-4-per-day-in-SAS-VA-7-3/m-p/638267#M13650</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2020-04-08T09:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a dynamic top 4 per day in SAS VA 7.3</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Selecting-a-dynamic-top-4-per-day-in-SAS-VA-7-3/m-p/639454#M13653</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, what you are asking for is actually rather difficult.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your data preparation, you could use the RANK procedure to select the top 4 values for each date, but that selection won't be dynamic when you filter by vehicle type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In VA, you can apply rankings on the Ranks tab. These will be dynamic, but they will be ranking for all time instead of for each day. If you filter your table in VA by date as well as vehicle type, you should get the result you want, but you will only see data for one day at a time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone else might have additional ideas, but this is what I can offer off the top of my head.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if my understanding above sounds right, and if this info helps.&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>Mon, 13 Apr 2020 13:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Selecting-a-dynamic-top-4-per-day-in-SAS-VA-7-3/m-p/639454#M13653</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-04-13T13:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a dynamic top 4 per day in SAS VA 7.3</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Selecting-a-dynamic-top-4-per-day-in-SAS-VA-7-3/m-p/646177#M13703</link>
      <description>Its already not needed anymore though, but thank you for your reaction.</description>
      <pubDate>Fri, 08 May 2020 12:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Selecting-a-dynamic-top-4-per-day-in-SAS-VA-7-3/m-p/646177#M13703</guid>
      <dc:creator>AK100</dc:creator>
      <dc:date>2020-05-08T12:00:09Z</dc:date>
    </item>
  </channel>
</rss>

