<?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 unequal lenght data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-unequal-lenght-data/m-p/3337252#M125166</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have product like 'abc:def:ghi:jkl' .I want to take right most product (jkl) after the colon. I am using this but it works only if&amp;nbsp; i have two products (abc:def). Also keep in mind, my product length is not same always. There might be any number of ':' in between.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Col1 = &lt;/SPAN&gt;&lt;SPAN&gt;RIGHT&lt;/SPAN&gt;&lt;SPAN&gt;(TABLE&lt;/SPAN&gt;&lt;SPAN&gt;[PRODUCT]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;LEN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TABLE&lt;/SPAN&gt;&lt;SPAN&gt;[PRODUCT]&lt;/SPAN&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;SEARCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;,TABLE[PRODUCT]&lt;/SPAN&gt;&lt;SPAN&gt;,,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 18 Jul 2023 20:05:07 GMT</pubDate>
    <dc:creator>logan_logan</dc:creator>
    <dc:date>2023-07-18T20:05:07Z</dc:date>
    <item>
      <title>Split unequal lenght data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-unequal-lenght-data/m-p/3337252#M125166</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have product like 'abc:def:ghi:jkl' .I want to take right most product (jkl) after the colon. I am using this but it works only if&amp;nbsp; i have two products (abc:def). Also keep in mind, my product length is not same always. There might be any number of ':' in between.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Col1 = &lt;/SPAN&gt;&lt;SPAN&gt;RIGHT&lt;/SPAN&gt;&lt;SPAN&gt;(TABLE&lt;/SPAN&gt;&lt;SPAN&gt;[PRODUCT]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;LEN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TABLE&lt;/SPAN&gt;&lt;SPAN&gt;[PRODUCT]&lt;/SPAN&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;SEARCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;":"&lt;/SPAN&gt;&lt;SPAN&gt;,TABLE[PRODUCT]&lt;/SPAN&gt;&lt;SPAN&gt;,,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Jul 2023 20:05:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-unequal-lenght-data/m-p/3337252#M125166</guid>
      <dc:creator>logan_logan</dc:creator>
      <dc:date>2023-07-18T20:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Split unequal lenght data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-unequal-lenght-data/m-p/3337317#M125170</link>
      <description>&lt;P&gt;Hi Logan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be done best in the Power Query editor by using the below function to identify the last occurrence of ":".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Text.PositionOf(TABLE[PRODUCT], ":", Occurrence.Last)&lt;/LI-CODE&gt;&lt;P&gt;This past post can help you with the answer:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Search-from-right-to-left/m-p/952873#M456539" target="_self"&gt;https://community.fabric.microsoft.com/t5/Desktop/Search-from-right-to-left/m-p/952873#M456539&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I built an example table. here is the Power Query Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("TYw7DoAwDEPv0pmhYkHyVUqHgBt+G4H7E6hALJb9LDul0J8xtp0MI1gU07xg3UJuUjChgGqiUJq8DGKswSEf89VegbeIE3Day1Fn/mTOf7N8AQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [products = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"products", type text}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"products", "Product"}}),
    #"Added Custom" = Table.AddColumn(#"Renamed Columns", "Find Last", each Text.PositionOf([Product],":",Occurrence.Last)),
    #"Added Custom1" = Table.AddColumn(#"Added Custom", "product Name", each if Text.PositionOf([Product],":",Occurrence.Last)=-1 then [Product] else Text.Middle([Product],Text.PositionOf([Product],":",Occurrence.Last)+1,Text.Length([Product])-Text.PositionOf([Product],":",Occurrence.Last)))
in
    #"Added Custom1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark my post as a solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 20:56:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-unequal-lenght-data/m-p/3337317#M125170</guid>
      <dc:creator>AlanFredes</dc:creator>
      <dc:date>2023-07-18T20:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Split unequal lenght data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-unequal-lenght-data/m-p/3337363#M125174</link>
      <description>&lt;P&gt;Thanks a lot. Its working&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 21:58:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Split-unequal-lenght-data/m-p/3337363#M125174</guid>
      <dc:creator>logan_logan</dc:creator>
      <dc:date>2023-07-18T21:58:26Z</dc:date>
    </item>
  </channel>
</rss>

