<?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: Find string from another column and remove remain part of this string in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258869#M120441</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568021" data-lia-user-login="Nurzh" class="lia-mention lia-mention-user"&gt;Nurzh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if your case is complete. try like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
MAXX(
    FILTER(
        data,
        data[DocumentSourceCategory]="Master Document"
    ),
    data[DocumentNumber]
)&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 05:53:03 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-05-30T05:53:03Z</dc:date>
    <item>
      <title>Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258793#M120436</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I would like to find the occurence of string in one column, and remove the remain part. Example:&lt;/P&gt;&lt;P&gt;Table "Document"&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;DocNumber&lt;/TD&gt;&lt;TD&gt;DocCategory&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;TD&gt;Master&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812&lt;/TD&gt;&lt;TD&gt;Copy&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812-21&lt;/TD&gt;&lt;TD&gt;Copy&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired result will be:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;DocNumber&lt;/TD&gt;&lt;TD&gt;DocCategory&lt;/TD&gt;&lt;TD&gt;New Column&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;TD&gt;Master&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812&lt;/TD&gt;&lt;TD&gt;Copy&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812-21&lt;/TD&gt;&lt;TD&gt;Copy&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this formula, but it does not work correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;document master =
VAR CurrentCategory = Document[DocCategory]
VAR CurrentNumber = Document[DocNumber]
VAR IsMasterDocument = CurrentCategory = "Master"
VAR MasterNumber =
    IF(
        IsMasterDocument,
        CurrentNumber,
LEFT(CurrentNumber, IFERROR(FIND("-", CurrentNumber &amp;amp; "-", FIND("-", CurrentNumber) + 1) - 1,LEN(CurrentNumber)))
    )
RETURN
    MasterNumber&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One more thing is the lenght of Master Documents can be different and we need to check it by Category.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for any help!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 05:13:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258793#M120436</guid>
      <dc:creator>Nurzh</dc:creator>
      <dc:date>2023-05-30T05:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258854#M120438</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568021" data-lia-user-login="Nurzh" class="lia-mention lia-mention-user"&gt;Nurzh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you have other columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if that is all you have, you can just try:&lt;/P&gt;&lt;P&gt;column =&lt;BR /&gt;MAXX(&lt;BR /&gt;FILTER(data, data[DocCategory]="Master"),&lt;BR /&gt;data[DocNumber]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 05:37:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258854#M120438</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-30T05:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258860#M120439</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes&amp;nbsp; I have, here is the full table with another example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired new column I make it Bold.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing is that we need to identify Master Document value from Copy Document Numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;DocumentNumber&lt;/TD&gt;&lt;TD&gt;DocumentTitle&lt;/TD&gt;&lt;TD&gt;DocumentTypeShortCode&lt;/TD&gt;&lt;TD&gt;DocumentType&lt;/TD&gt;&lt;TD&gt;DocumentSourceCategory&lt;/TD&gt;&lt;TD&gt;RevisionCode&lt;/TD&gt;&lt;TD&gt;FinalStatus&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;NEW COLUMN&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Master Document&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Z08&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;V01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07917D&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLS PIG RCVR (DESTRUCT)&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07917&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-14398&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z03&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-00209&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;V01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812-21&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;V01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-05209D&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z03&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812-21D1&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-05908&lt;/TD&gt;&lt;TD&gt;PIPING AND INSTRUMENTATION DIAGRAM&amp;nbsp; L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;V01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812D&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;V01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-05209&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z03&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-03210D&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812-21P&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-07812-21D&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;V01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;61-2300-B-PID-2350-01-03210&lt;/TD&gt;&lt;TD&gt;L-2350 TENGIZ FLOWLINES PIG RECEIVER&lt;/TD&gt;&lt;TD&gt;PID&lt;/TD&gt;&lt;TD&gt;Piping and Instrumentation Diagram&lt;/TD&gt;&lt;TD&gt;Project Working Copy&lt;/TD&gt;&lt;TD&gt;Z01&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;TD&gt;61-2300-B-PID-2350-01&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 30 May 2023 05:46:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258860#M120439</guid>
      <dc:creator>Nurzh</dc:creator>
      <dc:date>2023-05-30T05:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258869#M120441</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568021" data-lia-user-login="Nurzh" class="lia-mention lia-mention-user"&gt;Nurzh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if your case is complete. try like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
MAXX(
    FILTER(
        data,
        data[DocumentSourceCategory]="Master Document"
    ),
    data[DocumentNumber]
)&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 05:53:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258869#M120441</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-30T05:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258870#M120442</link>
      <description>&lt;P&gt;This is not suitable for my case, I need to check occurence of every string Master Document in rows where Category = Copy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 05:53:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258870#M120442</guid>
      <dc:creator>Nurzh</dc:creator>
      <dc:date>2023-05-30T05:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258881#M120444</link>
      <description>&lt;P&gt;Tried this formula, it does not suitable for my case, as I have many various document copies. This takes only max value of all master documents.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing is we need to search for occurence of Document Number where Category = Master in Document Numbers where Category = Copy&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 06:02:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3258881#M120444</guid>
      <dc:creator>Nurzh</dc:creator>
      <dc:date>2023-05-30T06:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3259130#M120458</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568021" data-lia-user-login="Nurzh" class="lia-mention lia-mention-user"&gt;Nurzh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Master Documents = 
MAXX ( 
    FILTER ( 
        'Table',
        'Table'[Document Category] = "Master Document"
            &amp;amp;&amp;amp; CONTAINSSTRING ( EARLIER ( 'Table'[Document Number] ), 'Table'[Document Number] )
    ),
    'Table'[Document Number]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 May 2023 08:19:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3259130#M120458</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-30T08:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3260908#M120565</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you for your solution,&lt;/P&gt;&lt;P&gt;it really works, but I have 2.8 million rows in my table, and now almost 6-7 hours I am waiting for the result, it just stuck on&amp;nbsp;"Working on it"...&lt;/P&gt;&lt;P&gt;Is there any other&amp;nbsp; ways to realise it, maybe in Power query?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 04:30:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3260908#M120565</guid>
      <dc:creator>Nurzh</dc:creator>
      <dc:date>2023-05-31T04:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find string from another column and remove remain part of this string</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3261005#M120573</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568021" data-lia-user-login="Nurzh" class="lia-mention lia-mention-user"&gt;Nurzh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, sure.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:10:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-string-from-another-column-and-remove-remain-part-of-this/m-p/3261005#M120573</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-31T06:10:20Z</dc:date>
    </item>
  </channel>
</rss>

