<?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: Dynamically filter records after a certain keyword in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448408#M86286</link>
    <description>&lt;P&gt;I suggest using a multi row formula tool to create a new column you can use to filter:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/72762i2492F5AE98E1C4C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IIF([Row-1:FilterMe],1,IIF([Field1] IN ('Cost', 'Price'),1,0))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The filter value will stick to True once it has encountered either Cost or Price&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample attached&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2019 20:34:51 GMT</pubDate>
    <dc:creator>jdunkerley79</dc:creator>
    <dc:date>2019-08-06T20:34:51Z</dc:date>
    <item>
      <title>Dynamically filter records after a certain keyword</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448391#M86278</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have many data sources all coming into Alteryx from excel. The important info for my data always starts on rows 1, 2 or 3&lt;SPAN&gt;&amp;nbsp; but this changes occasionally. More importantly the information always starts after a record with the word "Cost" or "Price", like so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cost&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;789&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PRICE&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;545&lt;/TD&gt;&lt;TD&gt;565&lt;/TD&gt;&lt;TD&gt;546&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rather than changing a select record tool for each new sheet, is there a tool which could detect the keywords "Cost" or "Price" and filter only for the records after?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 20:11:27 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448391#M86278</guid>
      <dc:creator>Csam</dc:creator>
      <dc:date>2019-08-06T20:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically filter records after a certain keyword</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448408#M86286</link>
      <description>&lt;P&gt;I suggest using a multi row formula tool to create a new column you can use to filter:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/72762i2492F5AE98E1C4C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IIF([Row-1:FilterMe],1,IIF([Field1] IN ('Cost', 'Price'),1,0))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The filter value will stick to True once it has encountered either Cost or Price&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample attached&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 20:34:51 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448408#M86286</guid>
      <dc:creator>jdunkerley79</dc:creator>
      <dc:date>2019-08-06T20:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically filter records after a certain keyword</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448501#M86307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/90716"&gt;@Csam&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Take a look at this approach. I mocked up some more data, where the headers aren't always "Cost" or "Price". All credit to&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3554"&gt;@jdunkerley79&lt;/a&gt;&amp;nbsp;for getting the creative process flowing with his great solution, and thought to create a boolean field for filtering.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 981px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/72798i894D99FCF3E1CB7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The multi-field formula tool takes a couple of passes at each row of data, using the following function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF IsEmpty([Field1]) THEN 0&lt;BR /&gt;ELSEIF [Field1] in ("Cost","Price") THEN 0&lt;BR /&gt;ELSEIF [Row-1:Field1] in ("Cost","Price") THEN 1&lt;BR /&gt;ELSEIF [Row-1:FilterMe]=1 THEN 1&lt;BR /&gt;ELSE 0&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So first, if it's an empty row from your data (here, I've assumed you're unioning the Excel files together), mark it with false. Same if the row contains the words "Cost" or "Price", because those are just headings. Then, if the row above has Cost or Price in the first column, or the FilterMe field in the row before is true, then mark it as true.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise it must be false. This works for many different headings, and for when there are blank rows separating the data (or there aren't blank rows).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If your empty rows contain spaces, you can replace the first line with Contains([Field1]," ")&lt;BR /&gt;&lt;BR /&gt;Let me know if this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Esther&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 02:44:31 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448501#M86307</guid>
      <dc:creator>estherb47</dc:creator>
      <dc:date>2019-08-07T02:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically filter records after a certain keyword</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448673#M86351</link>
      <description>&lt;P&gt;This is exactly what I was looking for, thank you both&amp;nbsp;for the help!!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 13:30:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Dynamically-filter-records-after-a-certain-keyword/m-p/448673#M86351</guid>
      <dc:creator>Csam</dc:creator>
      <dc:date>2019-08-07T13:30:41Z</dc:date>
    </item>
  </channel>
</rss>

