<?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: M Language Extract Text in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/M-Language-Extract-Text/m-p/2579656#M73984</link>
    <description>&lt;P&gt;= Table.AddColumn(#"Renamed Columns", "Custom",&lt;BR /&gt;each if&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Text.Length(Text.Select([_5],"-"))&amp;gt;1 and Text.StartsWith([_5],"ABLE TO PLAY")&lt;BR /&gt;then Text.BetweenDelimiters([_5], "-", "-", 0, 1)&lt;BR /&gt;else if&lt;BR /&gt;&amp;nbsp; Text.Length(Text.Select([_5],"-"))&amp;lt;=1 and Text.StartsWith([_5], "ABLE TO PLAY")&lt;BR /&gt;then Text.AfterDelimiter([_5], " ", 2) else [_5])&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Achieve after testing a lot! If anyone has the same problem or something similar I hope it helps.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 08:43:37 GMT</pubDate>
    <dc:creator>FrankWoody</dc:creator>
    <dc:date>2022-06-15T08:43:37Z</dc:date>
    <item>
      <title>M Language Extract Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/M-Language-Extract-Text/m-p/2578648#M73921</link>
      <description>&lt;P&gt;I would like to create some criteria when extracting the text based on the number of "-" and the text of the column starting with "ABLE TO PLAY".&lt;BR /&gt;If the column starts with the text "ABLE TO PLAY" and the amount of ; "-" is greater than 1 so I want it to extract the text following this RULE:&lt;BR /&gt;Text.BetweenDelimiters([SPENDING LOCATION], "-", "-", 0, 1)&lt;BR /&gt;But if the number of "-" is less than or equal to 1 then I want it to use:&lt;BR /&gt;Text.AfterDelimiter([SPENDING LOCATION], " ", 2).&lt;BR /&gt;If the column starts with any text other than "ABLE TO PLAY" it can return the normal value of the column without change.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 21:45:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/M-Language-Extract-Text/m-p/2578648#M73921</guid>
      <dc:creator>FrankWoody</dc:creator>
      <dc:date>2022-06-14T21:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: M Language Extract Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/M-Language-Extract-Text/m-p/2579248#M73959</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Will you able to share some sample records?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 06:17:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/M-Language-Extract-Text/m-p/2579248#M73959</guid>
      <dc:creator>Hariharan_R</dc:creator>
      <dc:date>2022-06-15T06:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: M Language Extract Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/M-Language-Extract-Text/m-p/2579656#M73984</link>
      <description>&lt;P&gt;= Table.AddColumn(#"Renamed Columns", "Custom",&lt;BR /&gt;each if&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Text.Length(Text.Select([_5],"-"))&amp;gt;1 and Text.StartsWith([_5],"ABLE TO PLAY")&lt;BR /&gt;then Text.BetweenDelimiters([_5], "-", "-", 0, 1)&lt;BR /&gt;else if&lt;BR /&gt;&amp;nbsp; Text.Length(Text.Select([_5],"-"))&amp;lt;=1 and Text.StartsWith([_5], "ABLE TO PLAY")&lt;BR /&gt;then Text.AfterDelimiter([_5], " ", 2) else [_5])&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Achieve after testing a lot! If anyone has the same problem or something similar I hope it helps.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 08:43:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/M-Language-Extract-Text/m-p/2579656#M73984</guid>
      <dc:creator>FrankWoody</dc:creator>
      <dc:date>2022-06-15T08:43:37Z</dc:date>
    </item>
  </channel>
</rss>

