<?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 How to Create A DATE  Button IN VA which can simply Let you SEE the DATA for Today in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-Create-A-DATE-Button-IN-VA-which-can-simply-Let-you-SEE/m-p/294813#M5199</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am supposed to create a Button for Customer which can auto refresh the entire DATA based on the present DAY.&lt;/P&gt;
&lt;P&gt;Something like stated in the picture below.&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4750iB0806D1B775A3E3F/image-size/original?v=v2&amp;amp;px=-1" alt="sas1.png" title="sas1.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can easily be done with the NOW() function but now the issues is the data should be less on day from the present Day. i.e. in this case 28th August 2016.&lt;/P&gt;
&lt;P&gt;How to achieve this?&lt;/P&gt;
&lt;P&gt;how to get a date less than the present Date.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2016 13:40:55 GMT</pubDate>
    <dc:creator>maverickkub</dc:creator>
    <dc:date>2016-08-29T13:40:55Z</dc:date>
    <item>
      <title>How to Create A DATE  Button IN VA which can simply Let you SEE the DATA for Today</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-Create-A-DATE-Button-IN-VA-which-can-simply-Let-you-SEE/m-p/294813#M5199</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am supposed to create a Button for Customer which can auto refresh the entire DATA based on the present DAY.&lt;/P&gt;
&lt;P&gt;Something like stated in the picture below.&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4750iB0806D1B775A3E3F/image-size/original?v=v2&amp;amp;px=-1" alt="sas1.png" title="sas1.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can easily be done with the NOW() function but now the issues is the data should be less on day from the present Day. i.e. in this case 28th August 2016.&lt;/P&gt;
&lt;P&gt;How to achieve this?&lt;/P&gt;
&lt;P&gt;how to get a date less than the present Date.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-Create-A-DATE-Button-IN-VA-which-can-simply-Let-you-SEE/m-p/294813#M5199</guid>
      <dc:creator>maverickkub</dc:creator>
      <dc:date>2016-08-29T13:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Create A DATE  Button IN VA which can simply Let you SEE the DATA for Today</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-Create-A-DATE-Button-IN-VA-which-can-simply-Let-you-SEE/m-p/294823#M5201</link>
      <description>&lt;P&gt;So I found the Answer Myself!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step I:&amp;nbsp;&amp;nbsp;&amp;nbsp; Create a Now() field from the data.This would auto populate today's Date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step II: Create a new calcualted Item.Using Treat as fucntion and Datepart function change the Now data field to Number and Subtract the number of days you want from it as shown below:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4751i5AB8DBB02241E904/image-size/original?v=v2&amp;amp;px=-1" alt="sas2.png" title="sas2.png" border="0" /&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step III: USing this calucated Item crete another calculated item and again use this numeric data to chage into date itme for this time as shown below:&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;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4752iF8C2E673ADC082C8/image-size/original?v=v2&amp;amp;px=-1" alt="sas3.png" title="sas3.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-Create-A-DATE-Button-IN-VA-which-can-simply-Let-you-SEE/m-p/294823#M5201</guid>
      <dc:creator>maverickkub</dc:creator>
      <dc:date>2016-08-29T13:51:49Z</dc:date>
    </item>
  </channel>
</rss>

