<?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 pass date parameter in SAS Visual Analytics in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-pass-date-parameter-in-SAS-Visual-Analytics/m-p/690359#M14296</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that the date value must be expressed as a numeric. The dates in VA are "SAS Dates", the number of days since 01JAN1960.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try date=19886 to specify 12JUN2014.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might find this page useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sastipsbyhal.com/2012/01/sas-date-calculator-now-available.html" target="_blank"&gt;https://www.sastipsbyhal.com/2012/01/sas-date-calculator-now-available.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You appear to be using VA 7.x? On Viya we have a URL generator UI that enables you pick the parameter values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 13:16:13 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2020-10-09T13:16:13Z</dc:date>
    <item>
      <title>How to pass date parameter in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-pass-date-parameter-in-SAS-Visual-Analytics/m-p/690283#M14295</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a report that has a date 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="WhatsApp Image 2020-10-09 at 12.04.48 PM.jpeg" style="width: 405px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50413i3D32A0C402E1B6F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatsApp Image 2020-10-09 at 12.04.48 PM.jpeg" alt="WhatsApp Image 2020-10-09 at 12.04.48 PM.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a calculated field as&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;IF ( 'date'p &amp;lt;= 'date_of_offense'n )
RETURN 'Open'
ELSE 'Close'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now I'm trying to pass this date parameter via URL but the report isn't picking the date value from the URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to even test it, I created a control dropdown of data_of_offense date column and assigned the date parameter in role tab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WhatsApp Image 2020-10-09 at 12.04.17 PM.jpeg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50414iA5462F4CD904E2CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WhatsApp Image 2020-10-09 at 12.04.17 PM.jpeg" alt="WhatsApp Image 2020-10-09 at 12.04.17 PM.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;but whenever I send parameter via URL, the report doesn't update the value of the parameter from URL and also don't set the value of dropdown control, instead it does all the calculation using the default value of parameter that is 1Jan1960.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the URL&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sasbap.demo.sas.com/SASVisualAnalyticsViewer/VisualAnalyticsViewer.jsp?reportPath=%2FShared%20Data%2F&amp;amp;reportName=ParameterReport&amp;amp;date=06%2F22%2F2014" target="_blank" rel="noopener"&gt;http://sasbap.demo.sas.com/SASVisualAnalyticsViewer/VisualAnalyticsViewer.jsp?reportPath=%2FShared%20Data%2F&amp;amp;reportName=ParameterReport&amp;amp;date=06%2F22%2F2014&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried many formats like&amp;nbsp;&lt;/P&gt;&lt;P&gt;date='12Jun2014'd&lt;/P&gt;&lt;P&gt;date=06/12/2014&lt;/P&gt;&lt;P&gt;date=12/06/2014&lt;/P&gt;&lt;P&gt;date=2014-06-12&lt;/P&gt;&lt;P&gt;date=2014-6-12&lt;/P&gt;&lt;P&gt;date=2014/06/12&lt;/P&gt;&lt;P&gt;date='06/12/2014'D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but report is not assigning the value of date parameter from URL to parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I pass the date value to the date parameter in SAS VA from URL. any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 07:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-pass-date-parameter-in-SAS-Visual-Analytics/m-p/690283#M14295</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2020-10-09T07:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass date parameter in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-pass-date-parameter-in-SAS-Visual-Analytics/m-p/690359#M14296</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that the date value must be expressed as a numeric. The dates in VA are "SAS Dates", the number of days since 01JAN1960.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try date=19886 to specify 12JUN2014.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might find this page useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sastipsbyhal.com/2012/01/sas-date-calculator-now-available.html" target="_blank"&gt;https://www.sastipsbyhal.com/2012/01/sas-date-calculator-now-available.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You appear to be using VA 7.x? On Viya we have a URL generator UI that enables you pick the parameter values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 13:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-pass-date-parameter-in-SAS-Visual-Analytics/m-p/690359#M14296</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-10-09T13:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass date parameter in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-pass-date-parameter-in-SAS-Visual-Analytics/m-p/690885#M14298</link>
      <description>Thanks, It's working</description>
      <pubDate>Mon, 12 Oct 2020 05:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-pass-date-parameter-in-SAS-Visual-Analytics/m-p/690885#M14298</guid>
      <dc:creator>Azeem112</dc:creator>
      <dc:date>2020-10-12T05:48:55Z</dc:date>
    </item>
  </channel>
</rss>

