<?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: DAX formula to extract text before and after special character in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128565#M111219</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312514" data-lia-user-login="Jenny_Sommet" class="lia-mention lia-mention-user"&gt;Jenny_Sommet&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Column2 =&lt;BR /&gt;VAR String = 'Table'[Column1]&lt;BR /&gt;VAR Items =&lt;BR /&gt;SUBSTITUTE ( String, " - ", "|" )&lt;BR /&gt;RETURN&lt;BR /&gt;PATHITEM ( Items, 2 )&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 15:52:57 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-03-13T15:52:57Z</dc:date>
    <item>
      <title>DAX formula to extract text before and after special character</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128518#M111216</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to the community and hoping for some help! In the column below, I only want to extract the text that comes after '- ' and before ' -' for the entire column of values. Please can you help with DAX calculation? I am unable to use PowerQuery for various reasons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDPC - 2023.Q1 - DP (want to extract 2023.Q1)&lt;/P&gt;&lt;P&gt;LRM - 2023.1 - UG&amp;nbsp;- DP (want to extract 2023.1)&lt;/P&gt;&lt;P&gt;LRCM - 2022.2 - PG&amp;nbsp;- DP (want to extract 2022.2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128518#M111216</guid>
      <dc:creator>Jenny_Sommet</dc:creator>
      <dc:date>2023-03-13T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to extract text before and after special character</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128565#M111219</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312514" data-lia-user-login="Jenny_Sommet" class="lia-mention lia-mention-user"&gt;Jenny_Sommet&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Column2 =&lt;BR /&gt;VAR String = 'Table'[Column1]&lt;BR /&gt;VAR Items =&lt;BR /&gt;SUBSTITUTE ( String, " - ", "|" )&lt;BR /&gt;RETURN&lt;BR /&gt;PATHITEM ( Items, 2 )&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:52:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128565#M111219</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-13T15:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to extract text before and after special character</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128581#M111222</link>
      <description>&lt;P&gt;Thank you so much for the fast response!&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;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you confirm how I can modify the DAX to only extract the characters after '- ' also?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDPC - 2023.Q1 - DP (want to extract DP)&lt;/P&gt;&lt;P&gt;LRM - 2023.1 - UG&amp;nbsp;- DP (want to extract DP)&lt;/P&gt;&lt;P&gt;LRCM - 2022.2 - PG&amp;nbsp;- DP (want to extract DP)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 15:58:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128581#M111222</guid>
      <dc:creator>Jenny_Sommet</dc:creator>
      <dc:date>2023-03-13T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to extract text before and after special character</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128597#M111224</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312514" data-lia-user-login="Jenny_Sommet" class="lia-mention lia-mention-user"&gt;Jenny_Sommet&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Column2 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR String = 'Table'[Column1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR Items =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUBSTITUTE ( String, " - ", "|" )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;VAR Length =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;COALESCE ( PATHLENGTH ( Items ), 1 )&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PATHITEM ( Items, Length )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 16:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128597#M111224</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-13T16:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to extract text before and after special character</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128625#M111225</link>
      <description>&lt;P&gt;&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; Really appreciate your support!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 16:20:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-extract-text-before-and-after-special-character/m-p/3128625#M111225</guid>
      <dc:creator>Jenny_Sommet</dc:creator>
      <dc:date>2023-03-13T16:20:33Z</dc:date>
    </item>
  </channel>
</rss>

