<?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 Split Text After Second Value with Dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3053274#M105241</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sample dataset which contains mail adresses of our users. For example;&lt;BR /&gt;&lt;A href="mailto:janice@first@.com" target="_blank" rel="noopener"&gt;car@first@.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:kelaj@second@.com" target="_blank" rel="noopener"&gt;ships@second@.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="mailto:oswald@fa.com" target="_blank" rel="noopener"&gt;car@fa.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="mailto:harry@commun.com" target="_blank" rel="noopener"&gt;ships@commun.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If I have "car" in my e-mail address, I want to delete after the first @, if "ships", after the second @.&lt;/P&gt;&lt;P&gt;I tried some functions such as search, mid, len but I couldn't achieve my goal.&lt;/P&gt;&lt;P&gt;I believe there is a lot of wisdom people here. Can you help me about how can I do this with dax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 16:42:02 GMT</pubDate>
    <dc:creator>hermanos</dc:creator>
    <dc:date>2023-01-31T16:42:02Z</dc:date>
    <item>
      <title>Split Text After Second Value with Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3053274#M105241</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sample dataset which contains mail adresses of our users. For example;&lt;BR /&gt;&lt;A href="mailto:janice@first@.com" target="_blank" rel="noopener"&gt;car@first@.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:kelaj@second@.com" target="_blank" rel="noopener"&gt;ships@second@.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="mailto:oswald@fa.com" target="_blank" rel="noopener"&gt;car@fa.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="mailto:harry@commun.com" target="_blank" rel="noopener"&gt;ships@commun.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If I have "car" in my e-mail address, I want to delete after the first @, if "ships", after the second @.&lt;/P&gt;&lt;P&gt;I tried some functions such as search, mid, len but I couldn't achieve my goal.&lt;/P&gt;&lt;P&gt;I believe there is a lot of wisdom people here. Can you help me about how can I do this with dax?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 16:42:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3053274#M105241</guid>
      <dc:creator>hermanos</dc:creator>
      <dc:date>2023-01-31T16:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text After Second Value with Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3054328#M105310</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="488616" data-lia-user-login="hermanos" class="lia-mention lia-mention-user"&gt;hermanos&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are bit unclear with exact requirement but as per our understanding, in the Sample data that you have provided there are two "@" in some Emails and you want to remove the 2nd "@" for cars and Ships or else the First from Cars and Second from Ships.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help us by&amp;nbsp;Elaborating your Requirement in some Sentences so that we can get it and can Provide Result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Inogic Professional Service Division&lt;/P&gt;&lt;P&gt;An expert technical extension for your techno-functional business needs&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM&lt;/P&gt;&lt;P&gt;Drop an email at &lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Service:&amp;nbsp; &lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 06:02:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3054328#M105310</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-02-01T06:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text After Second Value with Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055109#M105357</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="488616" data-lia-user-login="hermanos" class="lia-mention lia-mention-user"&gt;hermanos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NewColumn = 
SWITCH (
    TRUE (),
    SEARCH ( "ships", TableName[Address] ) &amp;gt;= 1, 
    LEFT ( TableName[Address], 
           FIND ( "@", TableName[Address], SEARCH ( "@", TableName[Address] ) + 1 ) - 1 
         ),
    SEARCH ( "cars", TableName[Address] ) &amp;gt;= 1, 
    LEFT ( TableName[Address], SEARCH ( "@", TableName[Address] ) - 1 ),
    TableName[Address]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 12:12:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055109#M105357</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2023-02-01T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text After Second Value with Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055196#M105362</link>
      <description>&lt;P&gt;It throws me an error.&amp;nbsp;&lt;BR /&gt;"The search Text provided to function 'SEARCH' could not be found in the given text."&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 13:02:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055196#M105362</guid>
      <dc:creator>hermanos</dc:creator>
      <dc:date>2023-02-01T13:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text After Second Value with Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055220#M105366</link>
      <description>&lt;P&gt;Do all your values contain "@"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 13:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055220#M105366</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2023-02-01T13:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text After Second Value with Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055236#M105368</link>
      <description>&lt;P&gt;No, some of them has only letters.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 13:24:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055236#M105368</guid>
      <dc:creator>hermanos</dc:creator>
      <dc:date>2023-02-01T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Split Text After Second Value with Dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055391#M105380</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="488616" data-lia-user-login="hermanos" class="lia-mention lia-mention-user"&gt;hermanos&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It would be better&amp;nbsp; to do this in Power Query. Try this other version&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NewColumn =
SWITCH (
    TRUE (),
    SEARCH ( "ships", TableName[Address],, 0 ) &amp;gt; 0,
        LEFT (
            TableName[Address],
            VAR aux_ =
                FIND ( "@", TableName[Address], SEARCH ( "@", TableName[Address],, 0 ) + 1, 0 )
            RETURN
                IF ( aux_ = 0, LEN ( TableName[Address] ), aux_ )
        ),
    SEARCH ( "cars", TableName[Address],, 0 ) &amp;gt; 0,
        LEFT (
            TableName[Address],
            VAR aux2_ =
                SEARCH ( "@", TableName[Address],, 0 )
            RETURN
                IF ( aux2_ = 0, LEN ( TableName[Address] ), aux2_ )
        ),
    TableName[Address]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 14:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-Text-After-Second-Value-with-Dax/m-p/3055391#M105380</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2023-02-01T14:21:50Z</dc:date>
    </item>
  </channel>
</rss>

