<?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 Select records inbetween in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108945#M34211</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if there is an easy way to select records between a certain data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For exemple I have a table that looks a bit like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;F8&lt;/TD&gt;&lt;TD&gt;F9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Family Status&lt;/TD&gt;&lt;TD&gt;Single&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;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prorata&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;------------&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Gross Salary&lt;/TD&gt;&lt;TD&gt;7061,7839999999997&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car allowance&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;------------&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Net&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to select records only between Jan and Net, or better between the&amp;nbsp;&lt;SPAN&gt;------------&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reason is that I need to transform those numbers and round them to 2 decimals, without touching to the others variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know the easy would be to put a record ID and then select with the &amp;gt; or = from the filter tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I can't rely on record position (as I'm used to), as I have to make my workflow the most dynamic possible and the position of my records is likely to change with other data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone has a formula, or a way around to solve this,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 04:39:28 GMT</pubDate>
    <dc:creator>Hakimipous</dc:creator>
    <dc:date>2018-05-24T04:39:28Z</dc:date>
    <item>
      <title>Select records inbetween</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108945#M34211</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if there is an easy way to select records between a certain data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For exemple I have a table that looks a bit like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;F8&lt;/TD&gt;&lt;TD&gt;F9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Family Status&lt;/TD&gt;&lt;TD&gt;Single&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;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prorata&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;------------&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Gross Salary&lt;/TD&gt;&lt;TD&gt;7061,7839999999997&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Car allowance&lt;/TD&gt;&lt;TD&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;------------&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Net&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to select records only between Jan and Net, or better between the&amp;nbsp;&lt;SPAN&gt;------------&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reason is that I need to transform those numbers and round them to 2 decimals, without touching to the others variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know the easy would be to put a record ID and then select with the &amp;gt; or = from the filter tool.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I can't rely on record position (as I'm used to), as I have to make my workflow the most dynamic possible and the position of my records is likely to change with other data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone has a formula, or a way around to solve this,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 04:39:28 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108945#M34211</guid>
      <dc:creator>Hakimipous</dc:creator>
      <dc:date>2018-05-24T04:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select records inbetween</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108962#M34212</link>
      <description>&lt;P&gt;The Multi-Row Formula tool might be able to help you here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something along these lines:&lt;BR /&gt;&lt;BR /&gt;Create a new field called "NeededInfo" - i'd make this an integer or binary value personally, but it is up to you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you could write a formula something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;IF [F9] = '------------'
   Then
     IF [Row-1:NeededInfo] = 1 Then 0
        Else 1
     ENDIF
   ELSE [Row-1:NeededInfo]
ENDIF&lt;/PRE&gt;&lt;P&gt;After that, you could apply a Filter Tool and filter for NeededInfo = 1.&lt;BR /&gt;&lt;BR /&gt;This should give you only the information between these sets of dashes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I haven't really tested this formula, so you may also need to filter for [F9] != '------------' after that point.&lt;BR /&gt;&lt;BR /&gt;There are probably some improvements you could make to this design, but this should give you a starting point&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 16:21:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108962#M34212</guid>
      <dc:creator>Claje</dc:creator>
      <dc:date>2017-12-28T16:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select records inbetween</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108967#M34213</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/17544"&gt;@Hakimipous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's one way to solve it.&lt;/P&gt;&lt;P&gt;1. Create a new grouping field that captures if it is a month or a Net.&lt;/P&gt;&lt;P&gt;2. Use the Multi-Field formula tool to fill in the grouping field.&lt;/P&gt;&lt;P&gt;3. Find the numbers within the month groupings and put them in a Fixed Decimal field rounded to the nearest 2 decimal points.&lt;/P&gt;&lt;P&gt;4. Convert the numbers back to strings in the F9 field.&lt;/P&gt;&lt;P&gt;5. Remove the temporary fields.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConvertToDollars.png" style="width: 761px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/26740i3B6BAE25735810EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="ConvertToDollars.png" alt="ConvertToDollars.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 16:28:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108967#M34213</guid>
      <dc:creator>Philip</dc:creator>
      <dc:date>2017-12-28T16:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select records inbetween</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108987#M34214</link>
      <description>&lt;P&gt;First I noticed that that a comma is used instead of period so I used a formula to change this.&amp;nbsp; ReplaceChar([F9], ',', '.') I then used a second formula to round anything that has 1 or more number followed by a period and then followed by more then 2 numbers since these will need to be rounded. if REGEX_Match([F9], '\d+[.]+\d{2}+\d+') then tostring(Round(ToNumber([F9]),.01)) else [F9] endif&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to use the tonumber function since this is stored as a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used another solution that is more complicated if you want to take a look at the attachment.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 17:34:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108987#M34214</guid>
      <dc:creator>RogerS</dc:creator>
      <dc:date>2017-12-28T17:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select records inbetween</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108996#M34215</link>
      <description>&lt;P&gt;Works like a charm&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3722"&gt;@Philip&lt;/a&gt;&amp;nbsp;thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added&amp;nbsp;.* in the Regex_Match expression to make sure to capture negative numbers as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3681"&gt;@RogerS&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/4671"&gt;@Claje&lt;/a&gt;&amp;nbsp;, I'll try your method as well and see what fits better but those are exactly what I was looking for, a way not to rely on record position&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 18:02:29 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Select-records-inbetween/m-p/108996#M34215</guid>
      <dc:creator>Hakimipous</dc:creator>
      <dc:date>2017-12-28T18:02:29Z</dc:date>
    </item>
  </channel>
</rss>

