<?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: Filter on date in SAS VA dashboard 8.3 in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/913783#M17795</link>
    <description>Great!! Thanks for letting us know it worked for you.</description>
    <pubDate>Wed, 31 Jan 2024 13:35:59 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2024-01-31T13:35:59Z</dc:date>
    <item>
      <title>Filter on date in SAS VA dashboard 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/911086#M17750</link>
      <description>Hi all,&lt;BR /&gt;I'm trying to create filter on date in my dashboard which will be use to filter data by selected date and one month previous date with in a same filter. Example - If I'm selecting Apr2023 in my drop-down list then filtered data will be having dates like Mar2023 &amp;amp; Apr2023.&lt;BR /&gt;Filtered data will be consumed for dashboard.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Wed, 10 Jan 2024 09:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/911086#M17750</guid>
      <dc:creator>mystic_magical</dc:creator>
      <dc:date>2024-01-10T09:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date in SAS VA dashboard 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/911306#M17752</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is one of those things that feels more difficult than it should be. It is slightly easier in newer versions of VA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The basic idea is that you will create a parameter that will store the selected date, and then use that parameter in an advanced filter in the target object(s). You do not want to put the selector control in the report prompt area or the page prompt area. It needs to be in the body of a page so that does not automatically act as a filter. (This would filter out everything but the selected month value.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Due to some limitations, the filter selector needs to be something other than a slider control when a date parameter is assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the latest versions of VA you can use a filter expression like this:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;BetweenInclusive('Transaction Month'n, 'Parameter 1'p -31, 'Parameter 1'p)&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;In 8.3 you would need a more cumbersome one:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;( 'Transaction Month'n BetweenInclusive(TreatAs(_Date_, ( TreatAs(_Number_,
'Parameter 1'p) - 31 )), 'Parameter 1'p) )&lt;/PRE&gt;
&lt;P&gt;I don't have an 8.3 test environment at hand, but here it is in 8.5:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter.png" style="width: 460px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92461i4C3274234162ACFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter.png" alt="filter.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be honest, I am a little confused about why this works as well as it does-- you would expect that subtracting 31 days from MAR2000 (which is treated as 01MAR2000) would include January because February only has 28 or 29 days. But as far as I can tell it is always returning only the desired "selected month and the one before".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A further workaround to make the filter selector a report-level control would be to filter on a second data source that is not mapped to the main one. That way you can set the parameter value but not perform automatic filtering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps. I can walk you through the steps in greater detail if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/911306#M17752</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2024-01-11T17:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date in SAS VA dashboard 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/913732#M17793</link>
      <description>Manny Thanks Sam!!!&lt;BR /&gt;By using combination of parameter &amp;amp; advanced filter option I achieved my desired result.</description>
      <pubDate>Wed, 31 Jan 2024 09:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/913732#M17793</guid>
      <dc:creator>mystic_magical</dc:creator>
      <dc:date>2024-01-31T09:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date in SAS VA dashboard 8.3</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/913783#M17795</link>
      <description>Great!! Thanks for letting us know it worked for you.</description>
      <pubDate>Wed, 31 Jan 2024 13:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Filter-on-date-in-SAS-VA-dashboard-8-3/m-p/913783#M17795</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2024-01-31T13:35:59Z</dc:date>
    </item>
  </channel>
</rss>

