<?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 Extract text before delimiter in fabric using DAX. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4289390#M170244</link>
    <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column that is ticket numbers like SCTASK0012345, WKR0012345 etc. I need to extract all the text before the numbers to create a column for "Ticket Type". This data set comes from SNOW - SQL SERVER - POWER BI - FABRIC. I cant edit it in the desktop version and upload so I need the DAX expressions to do this in fabric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: The below works sort of but it now returns as WRK0,INC0 etc. I tried putting a K,C in place of 0 but Returned in error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;TicketType =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;LEFT&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;('query1' [Number],&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Search(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "0",&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'query1'[number],&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 18:50:03 GMT</pubDate>
    <dc:creator>Creature</dc:creator>
    <dc:date>2024-11-18T18:50:03Z</dc:date>
    <item>
      <title>Extract text before delimiter in fabric using DAX.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4289390#M170244</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column that is ticket numbers like SCTASK0012345, WKR0012345 etc. I need to extract all the text before the numbers to create a column for "Ticket Type". This data set comes from SNOW - SQL SERVER - POWER BI - FABRIC. I cant edit it in the desktop version and upload so I need the DAX expressions to do this in fabric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: The below works sort of but it now returns as WRK0,INC0 etc. I tried putting a K,C in place of 0 but Returned in error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;TicketType =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;LEFT&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;('query1' [Number],&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Search(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "0",&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'query1'[number],&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 18:50:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4289390#M170244</guid>
      <dc:creator>Creature</dc:creator>
      <dc:date>2024-11-18T18:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text before delimiter in fabric using DAX.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4289543#M170250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Try something like below whether it suits your requirement.&lt;/P&gt;
&lt;P&gt;It is for creating a calculated column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TicketType =
LEFT ( query1[Number], SEARCH ( 0, query1[Number] ) - 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 20:13:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4289543#M170250</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-11-18T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text before delimiter in fabric using DAX.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4291059#M170287</link>
      <description>&lt;P&gt;Step 1 -- go to power query&amp;nbsp;&lt;BR /&gt;step-2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;step -3 in there a option is extract click on that.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;step : 4 select&amp;nbsp; last characters&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;step : 5&amp;nbsp; enter how many ending characters to keep .&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if you still help&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Laxman babu&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 12:45:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4291059#M170287</guid>
      <dc:creator>Laxmanjatoth</dc:creator>
      <dc:date>2024-11-19T12:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text before delimiter in fabric using DAX.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4293397#M170391</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="605277" data-lia-user-login="Creature" class="lia-mention lia-mention-user"&gt;Creature&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this approach:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TicketType = 
VAR FirstDigitPosition = 
    MINX(
        FILTER(
            GENERATESERIES(1, LEN('query1'[Number])),
            MID('query1'[Number], [Value], 1) &amp;gt;= "0" &amp;amp;&amp;amp; MID('query1'[Number], [Value], 1) &amp;lt;= "9"
        ),
        [Value]
    )
RETURN
    LEFT('query1'[Number], FirstDigitPosition - 1)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Nov 2024 13:29:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extract-text-before-delimiter-in-fabric-using-DAX/m-p/4293397#M170391</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2024-11-20T13:29:51Z</dc:date>
    </item>
  </channel>
</rss>

