<?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: Left Function in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/15877#M7399</link>
    <description>&lt;P&gt;LEFT([STRING],5)&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2016 15:42:16 GMT</pubDate>
    <dc:creator>MarqueeCrew</dc:creator>
    <dc:date>2016-03-10T15:42:16Z</dc:date>
    <item>
      <title>Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/15876#M7398</link>
      <description>&lt;P&gt;Is there a fucntion or formula that I can use that will mimic the the&amp;nbsp;LEFT function in Excel? I am trying to pull the first 5 charactors from a string ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 01:37:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/15876#M7398</guid>
      <dc:creator>Lynnise</dc:creator>
      <dc:date>2018-05-24T01:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/15877#M7399</link>
      <description>&lt;P&gt;LEFT([STRING],5)&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 15:42:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/15877#M7399</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2016-03-10T15:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/15880#M7400</link>
      <description>&lt;P&gt;Thank you so much and "DUH" to myself! I did have brackets intially.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 15:47:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/15880#M7400</guid>
      <dc:creator>Lynnise</dc:creator>
      <dc:date>2016-03-10T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/354847#M64944</link>
      <description>&lt;P&gt;Mark, what if you had this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Trying to find the first position of o"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In excel, you can search the string and get back that the first "o" is at position 9 (might be 8.&amp;nbsp; I don't remember if search is 0 based).&lt;/P&gt;&lt;P&gt;I have a situation in Alteryx where I'm trying to find a character "|".&amp;nbsp; I'd like to do something like&amp;nbsp; --&amp;gt; right([fieldname],length([FieldName])-search([fieldname],'|'))&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 01:23:14 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/354847#M64944</guid>
      <dc:creator>Suzanne</dc:creator>
      <dc:date>2019-01-16T01:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/354855#M64947</link>
      <description>&lt;P&gt;Use FINDSTRING the same way as you would in Excel :)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 02:24:25 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/354855#M64947</guid>
      <dc:creator>cmcclellan</dc:creator>
      <dc:date>2019-01-16T02:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/355008#M64986</link>
      <description>&lt;P&gt;Hi cmcclellan.&amp;nbsp; FINDSTRING brought back True/FAlse, not the position of the character in the string.&amp;nbsp; Unless I'm not using it correctly ... a real possibility -:)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 12:10:31 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/355008#M64986</guid>
      <dc:creator>Suzanne</dc:creator>
      <dc:date>2019-01-16T12:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/355040#M64992</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/9475"&gt;@Suzanne&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry but I'd have to go to a library (inside of a museum) to dust off a book on Excel to answer your question.&amp;nbsp; I'll answer it in the 21st century with a regular expression.&amp;nbsp; I still don't know what your objective is and why you wouldn't use a text to columns to parse on the | symbol.&amp;nbsp; But before I go there, here is a cut &amp;amp; paste from the help on FindString():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="code"&gt;&lt;SPAN class="SearchHighlight SearchHighlight1"&gt;FindString&lt;/SPAN&gt;(String,Target)&lt;/SPAN&gt;: Searches for the occurrence of a particular string (Target) within another string (String) and returns the numeric position of its occurrence in the string.&lt;/P&gt;&lt;P&gt;Returns the 0 based index of the first occurrence of Target in String. Returns -1 if no occurrence.&lt;/P&gt;&lt;DIV class="MCDropDown dropDown dropDowndd_nested MCDropDown_Open"&gt;&lt;SPAN class="MCDropDownHead dropDownHead dropDownHeaddd_nested_head"&gt;&lt;A target="_blank"&gt;&lt;IMG src="https://help.alteryx.com/current/Skins/Default/Stylesheets/Images/transparent.gif" border="0" alt="Open" width="16" height="16" /&gt;Example&lt;/A&gt;&lt;/SPAN&gt;&lt;DIV class="MCDropDownBody dropDownBody dropDownBodydd_nested_body"&gt;&lt;P&gt;&lt;SPAN class="code"&gt;&lt;SPAN class="SearchHighlight SearchHighlight1"&gt;FindString&lt;/SPAN&gt;([Name], "John")&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;returns 0 when the string contains John and returns -1 when the string does not.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="code"&gt;IF (&lt;SPAN class="SearchHighlight SearchHighlight1"&gt;FINDSTRING&lt;/SPAN&gt;([Name], "John") =0) THEN "John Smith" ELSE "Other" ENDIF&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;returns John Smith when the string contains John and returns Other when the string does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Regex_Replace([Field], "(.*)|(.*)",'$2')&lt;/PRE&gt;&lt;P&gt;That expression will group everything to the left of a Pipe ''|" as Group 1 or $1.&amp;nbsp; It also groups everything after the pipe as $2.&amp;nbsp; The replacement that I chose was the second group.&amp;nbsp; So if you are creating a new variable as what is after the pipe, it will work for you.&amp;nbsp; If you wanted everything up to the first pipe (not including it), then change $2 to $1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Jan 2019 12:27:24 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/355040#M64992</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2019-01-16T12:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/355463#M65086</link>
      <description>&lt;P&gt;Not true/false, you just have to understand what the results are saying (&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3557"&gt;@MarqueeCrew&lt;/a&gt;&amp;nbsp;already explained), but this might help more :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-01-17 09_55_40-Alteryx Designer x64 - New Workflow4_.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/53016i49F3F24467DFB8F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-01-17 09_55_40-Alteryx Designer x64 - New Workflow4_.png" alt="2019-01-17 09_55_40-Alteryx Designer x64 - New Workflow4_.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a zero-based calculation, so you might need to add 1 to the result depending on what you want to do ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0 = John found at the start&lt;/P&gt;&lt;P&gt;1 = John&amp;nbsp;found.&amp;nbsp; First character is counted as 0, second character is 1&lt;/P&gt;&lt;P&gt;7 = John found, calculation as per above&lt;/P&gt;&lt;P&gt;-1 = John not found at all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FINDSTRING IS case-sensitive = JOHN, John and john will give 3 different results&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 23:01:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/355463#M65086</guid>
      <dc:creator>cmcclellan</dc:creator>
      <dc:date>2019-01-16T23:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/1012266#M250161</link>
      <description>&lt;P&gt;I am using the below function but I am getting error&lt;/P&gt;&lt;P&gt;Left([GL Account Number], 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 11:59:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/1012266#M250161</guid>
      <dc:creator>kishore_pvkk</dc:creator>
      <dc:date>2022-10-07T11:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Left Function</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/1012269#M250162</link>
      <description>&lt;P&gt;Below is the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kishore_pvkk_1-1665144053105.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/261105i5F60F83497FE9620/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kishore_pvkk_1-1665144053105.png" alt="kishore_pvkk_1-1665144053105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 12:01:08 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Left-Function/m-p/1012269#M250162</guid>
      <dc:creator>kishore_pvkk</dc:creator>
      <dc:date>2022-10-07T12:01:08Z</dc:date>
    </item>
  </channel>
</rss>

