<?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 TextSplit in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/TextSplit/m-p/2681799#M82425</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this string where I have succesfully grabed, adults, children and infants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been done by this formula by a fellow community member:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;List.Sum(List.Transform(List.Skip(Text.Split([metadata],"adults"":")),&lt;BR /&gt;(t)=&amp;gt; try Expression.Evaluate(Text.BeforeDelimiter(t,",") ) otherwise Number.From(Splitter.SplitTextByCharacterTransition({"0".."9"},{",","}"})(t){0},"en-US")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried tweaking the formula so I can grab market_code (the last 3 lines)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;List.Sum(List.Transform(List.Skip(Text.Split([metadata],"market_code"":")),&lt;BR /&gt;(t)=&amp;gt; try Expression.Evaluate(Text.BeforeDelimiter(t,",") ) otherwise Number.From(Splitter.SplitTextByCharacterTransition({"0".."9"},{",","}"})(t){0},"en-US")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula is returning an error and I have tried a lot of tweaking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody able to help me?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 13:21:08 GMT</pubDate>
    <dc:creator>asamr</dc:creator>
    <dc:date>2022-08-04T13:21:08Z</dc:date>
    <item>
      <title>TextSplit</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/TextSplit/m-p/2681799#M82425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this string where I have succesfully grabed, adults, children and infants.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been done by this formula by a fellow community member:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;List.Sum(List.Transform(List.Skip(Text.Split([metadata],"adults"":")),&lt;BR /&gt;(t)=&amp;gt; try Expression.Evaluate(Text.BeforeDelimiter(t,",") ) otherwise Number.From(Splitter.SplitTextByCharacterTransition({"0".."9"},{",","}"})(t){0},"en-US")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried tweaking the formula so I can grab market_code (the last 3 lines)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;List.Sum(List.Transform(List.Skip(Text.Split([metadata],"market_code"":")),&lt;BR /&gt;(t)=&amp;gt; try Expression.Evaluate(Text.BeforeDelimiter(t,",") ) otherwise Number.From(Splitter.SplitTextByCharacterTransition({"0".."9"},{",","}"})(t){0},"en-US")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula is returning an error and I have tried a lot of tweaking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody able to help me?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 13:21:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/TextSplit/m-p/2681799#M82425</guid>
      <dc:creator>asamr</dc:creator>
      <dc:date>2022-08-04T13:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: TextSplit</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/TextSplit/m-p/2681902#M82428</link>
      <description>&lt;P&gt;You can use following formula for everything here. Just replace "market_code by say adults etc.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= try Text.Split(List.RemoveNulls(List.Transform(Text.Split(Text.Remove([metadata],""""),","),(x)=&amp;gt;if Text.Contains(x,"market_code") then x else null)){0},":"){1} otherwise null&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 13:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/TextSplit/m-p/2681902#M82428</guid>
      <dc:creator>Vijay_A_Verma</dc:creator>
      <dc:date>2022-08-04T13:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: TextSplit</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/TextSplit/m-p/2683173#M82472</link>
      <description>&lt;P&gt;Thank you so much Vijay for your fast response - This is awesome! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 04:21:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/TextSplit/m-p/2683173#M82472</guid>
      <dc:creator>asamr</dc:creator>
      <dc:date>2022-08-05T04:21:31Z</dc:date>
    </item>
  </channel>
</rss>

