<?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 can i filter rows with a value with ods excel? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/689611#M24544</link>
    <description>Do you want your table to have all observations but the default view to be one with just Sandal/Boots but you can add back in the others? &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;Do you want a table exported with just Sandal/Boots?</description>
    <pubDate>Wed, 07 Oct 2020 16:06:53 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-10-07T16:06:53Z</dc:date>
    <item>
      <title>How can i filter rows with a value with ods excel?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/689602#M24541</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to extract some information for the table sashelp.shoes in a excel file with the bellow instruction but I also want to filter the column "Product" (second column) for the values "Sandal" and "Boot" and at the end create an excel with all the observations and the table filter by the column "Product"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to have all observations but the default view to be one with just Sandal/Boots and if i want in the Excel see the other values for that column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I update my program to have all the observations and also included the filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel file="C:\Reportes\Testshoes.xlsx" options(sheet_name="Test");&lt;BR /&gt;ods excel options (autofilter = 'all');&lt;BR /&gt;proc report data=sashelp.shoes; columns _all_;&lt;BR /&gt;run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I update proc report as the bellow line, it's only export the rows with these values, and I need to export all the lines in the excel and selected the filter with these values in the Excel.&lt;/P&gt;&lt;P&gt;proc report data=sashelp.shoes(where=(product="Sandal" or product='Boot'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have updated my program and now it creates the filter but it's not executed when i open the excel and I don't know how it can be executed in an automatically way by the ods option and also i would like to include in the filter more values as Boot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel file="C:\Reportes\Testshoes.xlsx" options(sheet_name="Test");&lt;/P&gt;&lt;P&gt;ods excel options (autofilter='2' autofilter_values='Sandal');&lt;BR /&gt;proc report data=sashelp.shoes; columns _all_; run;&lt;BR /&gt;ods excel close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 09:20:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/689602#M24541</guid>
      <dc:creator>MIsabel</dc:creator>
      <dc:date>2020-10-09T09:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can i filter rows with a value with ods excel?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/689607#M24542</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.shoes(where=(product="Sandal" or product='Boot'));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Oct 2020 15:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/689607#M24542</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-07T15:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can i filter rows with a value with ods excel?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/689611#M24544</link>
      <description>Do you want your table to have all observations but the default view to be one with just Sandal/Boots but you can add back in the others? &lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;Do you want a table exported with just Sandal/Boots?</description>
      <pubDate>Wed, 07 Oct 2020 16:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/689611#M24544</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-07T16:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can i filter rows with a value with ods excel?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/691249#M24573</link>
      <description>&lt;P&gt;ODS EXCEL has no mechanism nor options settings that let you preselect the filter values for an autofilter column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In EXCEL you would write VBA code to programmatically set the current 'checked' values in the drop downlist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;' VBA code&lt;BR /&gt;Dim items(1 to 2) as String&lt;BR /&gt;items(1) = "Sandal"
items(2) = "Boot"

ActiveSheet.ListObjects("Table1").range.AutoFilter Field:=2, Criteria1:=items, Operator:=xlFilterValues&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Oct 2020 13:17:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-can-i-filter-rows-with-a-value-with-ods-excel/m-p/691249#M24573</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-10-13T13:17:38Z</dc:date>
    </item>
  </channel>
</rss>

