<?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: Set list object with latest date while using a parameter (initially select first item option) in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Set-list-object-with-latest-date-while-using-a-parameter/m-p/682880#M14179</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I did a work around where I used ranking to get the lastest data and also rolling 30 days.&lt;/P&gt;
&lt;P&gt;When the users opens the report it always shows the latest data and if they want they can change the date using a drop down.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikE_2-1599733097764.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49229i4A1FCDBF27A1319C/image-size/large?v=v2&amp;amp;px=999" role="button" title="FredrikE_2-1599733097764.png" alt="FredrikE_2-1599733097764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added a parameter to the drop down. The purpose is to store the selected date. I set default values to 1939 and 2039.&lt;/P&gt;
&lt;P&gt;I then added a data source filter to do the filtering:&lt;/P&gt;
&lt;P&gt;date &amp;lt;= [date parameter]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also created a numeric variable from the date to use in the rankings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The BANs and the bar charts shows the latest figures using rank (hope you get the swedish :)):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikE_0-1599733002642.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49227iD122DBC60AFCAC89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikE_0-1599733002642.png" alt="FredrikE_0-1599733002642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The line chart shows the rolling 30 days also using rank:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikE_1-1599733069035.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49228iEFD921AA04012E9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikE_1-1599733069035.png" alt="FredrikE_1-1599733069035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 10:20:21 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2020-09-10T10:20:21Z</dc:date>
    <item>
      <title>Set list object with latest date while using a parameter (initially select first item option)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Set-list-object-with-latest-date-while-using-a-parameter/m-p/681338#M14168</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;We have a dashboard that shows weekly sales figures and Year to date figures for a variety of products. To view weekly data we have a list object with week ending date that filters the different KPI's in the dashboard. We also use the chosen week ending date as a parameter to show applications data for the last 10 weeks.&lt;/P&gt;&lt;P&gt;The purpose of the list object with week ending date is to allow the user to look at data as of that week for the last 5 to 10 weeks but we also want the report to show the current week data when the user opens it. They can then use the list control object to look at different weeks if needed.&lt;/P&gt;&lt;P&gt;To set it automatically to the current week, we selected the 'initially select first item' check box in the options menu for the list object, but once we assign a parameter to this object, this option disappears.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without parameter the option appears: screenshot below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Surya_Ravindran_2-1599140206230.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48964i3AC0B66B7B4974E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Surya_Ravindran_2-1599140206230.png" alt="Surya_Ravindran_2-1599140206230.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After assigning the parameter,&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="Surya_Ravindran_0-1599140121700.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48962i5D92E73A369603B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Surya_Ravindran_0-1599140121700.png" alt="Surya_Ravindran_0-1599140121700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This option is no longer available, screenshot below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Surya_Ravindran_3-1599140311582.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48965i40D9C21025CEAA0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Surya_Ravindran_3-1599140311582.png" alt="Surya_Ravindran_3-1599140311582.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a solution to use this option simultaneously with a parameter?&lt;/P&gt;&lt;P&gt;Really appreciate your input on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;BR /&gt;Surya&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 13:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Set-list-object-with-latest-date-while-using-a-parameter/m-p/681338#M14168</guid>
      <dc:creator>Surya_Ravindran</dc:creator>
      <dc:date>2020-09-03T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set list object with latest date while using a parameter (initially select first item option)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Set-list-object-with-latest-date-while-using-a-parameter/m-p/682880#M14179</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I did a work around where I used ranking to get the lastest data and also rolling 30 days.&lt;/P&gt;
&lt;P&gt;When the users opens the report it always shows the latest data and if they want they can change the date using a drop down.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikE_2-1599733097764.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49229i4A1FCDBF27A1319C/image-size/large?v=v2&amp;amp;px=999" role="button" title="FredrikE_2-1599733097764.png" alt="FredrikE_2-1599733097764.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added a parameter to the drop down. The purpose is to store the selected date. I set default values to 1939 and 2039.&lt;/P&gt;
&lt;P&gt;I then added a data source filter to do the filtering:&lt;/P&gt;
&lt;P&gt;date &amp;lt;= [date parameter]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also created a numeric variable from the date to use in the rankings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The BANs and the bar charts shows the latest figures using rank (hope you get the swedish :)):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikE_0-1599733002642.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49227iD122DBC60AFCAC89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikE_0-1599733002642.png" alt="FredrikE_0-1599733002642.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The line chart shows the rolling 30 days also using rank:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikE_1-1599733069035.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/49228iEFD921AA04012E9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikE_1-1599733069035.png" alt="FredrikE_1-1599733069035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 10:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Set-list-object-with-latest-date-while-using-a-parameter/m-p/682880#M14179</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2020-09-10T10:20:21Z</dc:date>
    </item>
  </channel>
</rss>

