<?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: TRIM text and _ in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/TRIM-text-and/m-p/1634523#M27577</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/136873"&gt;@sdhn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can copy and paste the following codes in your &lt;A href="https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-query-overview#advanced-editor" target="_self"&gt;&lt;STRONG&gt;Advanced Editor&lt;/STRONG&gt;&lt;/A&gt;:&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("i45W8vH3i/fw93VVitWBcBxdXIJcg4Ph/ADXoGB/PzjXP9zPNUgpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Text = _t]),
    #"Trimmed Text" = Table.TransformColumns(Source,{{"Text", Text.Trim, type text}}),
    #"Replaced Value" = Table.ReplaceValue(#"Trimmed Text","LON_","",Replacer.ReplaceText,{"Text"})
in
    #"Replaced Value"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="replace value.JPG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/444265iAC183B907DF7CBD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="replace value.JPG" alt="replace value.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 02:32:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-02-01T02:32:00Z</dc:date>
    <item>
      <title>TRIM text and _</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TRIM-text-and/m-p/1627450#M27531</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have list of items in&amp;nbsp; a table as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LON_HOME&lt;/P&gt;&lt;P&gt;LON_ADDRESS&lt;BR /&gt;LON_PERSON&lt;BR /&gt;LON_OWNER&amp;nbsp; etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want data appears in the report as:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HOME&lt;BR /&gt;ADDRESS&lt;BR /&gt;PERSON&lt;BR /&gt;OWNER&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Power Bi desktop version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 00:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TRIM-text-and/m-p/1627450#M27531</guid>
      <dc:creator>sdhn</dc:creator>
      <dc:date>2021-01-28T00:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM text and _</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TRIM-text-and/m-p/1633069#M27560</link>
      <description>&lt;P&gt;There can be many ways to do it.&lt;/P&gt;
&lt;P&gt;1. In power query replace LON_ to blank.&lt;/P&gt;
&lt;P&gt;2. You can split the column in Power query by number of delimiters as 4 as far left as possible.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 08:30:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TRIM-text-and/m-p/1633069#M27560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-30T08:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM text and _</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TRIM-text-and/m-p/1634523#M27577</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/136873"&gt;@sdhn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can copy and paste the following codes in your &lt;A href="https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-query-overview#advanced-editor" target="_self"&gt;&lt;STRONG&gt;Advanced Editor&lt;/STRONG&gt;&lt;/A&gt;:&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("i45W8vH3i/fw93VVitWBcBxdXIJcg4Ph/ADXoGB/PzjXP9zPNUgpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Text = _t]),
    #"Trimmed Text" = Table.TransformColumns(Source,{{"Text", Text.Trim, type text}}),
    #"Replaced Value" = Table.ReplaceValue(#"Trimmed Text","LON_","",Replacer.ReplaceText,{"Text"})
in
    #"Replaced Value"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="replace value.JPG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/444265iAC183B907DF7CBD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="replace value.JPG" alt="replace value.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 02:32:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TRIM-text-and/m-p/1634523#M27577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-01T02:32:00Z</dc:date>
    </item>
  </channel>
</rss>

