<?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: Text Transformations in Power Query in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893456#M56074</link>
    <description>&lt;P&gt;Here's one way to do it in the query editor.&amp;nbsp;&amp;nbsp;To see how it works, just create a blank query, open the Advanced Editor and replace the text there with the M code below.&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("PY3LCsIwFER/Zci69B98RFspLTRxFboI4aLRkIi5Rfx7bzfCrIZzZpxTZiXVKHuPFZLbmzy3wMln9pVjQKZPbdXSOHUpeSO73kBynvXOCtlDlJS+SPFJYNmR0sStCf4V2ae/vh2NhfFYK6NkQqXMlAOJYTs9axym63DEXmOYrBFt+QE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, Answer = _t]),
    #"Lowercased Text" = Table.TransformColumns(Source,{{"Answer", Text.Lower, type text}}),
    #"Added Custom" = Table.AddColumn(#"Lowercased Text", "Custom", each let x = Text.Split([Answer], ". ")
in List.Transform(x, each Text.Upper(Text.Start(Text.Trim(_),1)) &amp;amp; Text.End(Text.Trim(_), Text.Length(Text.Trim(_))-1)))
in
    #"Added Custom"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 12:14:01 GMT</pubDate>
    <dc:creator>mahoneypat</dc:creator>
    <dc:date>2021-06-10T12:14:01Z</dc:date>
    <item>
      <title>Text Transformations in Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893405#M56071</link>
      <description>&lt;P&gt;I want to be able to capitalise only the first word in any sentence within a column.&amp;nbsp; Note there can be many sentences within one column.&lt;/P&gt;&lt;P&gt;What data looks like&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Answer&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Sue&lt;/TD&gt;&lt;TD&gt;This is great.&amp;nbsp; Fantastic news.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jon&lt;/TD&gt;&lt;TD&gt;THIS IS GREAT.&amp;nbsp; I really like this.&amp;nbsp; Silly capitals.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD&gt;Not just one sentence.&amp;nbsp; THERE COULD BE LOTS.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What it should look like&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; Answer&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Sue&lt;/TD&gt;&lt;TD&gt;This is great.&amp;nbsp; Fantastic news.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jon&lt;/TD&gt;&lt;TD&gt;This is great.&amp;nbsp; I really like this.&amp;nbsp; Silly capitals.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Joe&lt;/TD&gt;&lt;TD&gt;Not just one sentence.&amp;nbsp; There could be lots.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 10 Jun 2021 11:59:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893405#M56071</guid>
      <dc:creator>suebayes</dc:creator>
      <dc:date>2021-06-10T11:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Text Transformations in Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893438#M56072</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="122159" data-lia-user-login="suebayes" class="lia-mention lia-mention-user"&gt;suebayes&lt;/a&gt;&amp;nbsp;Not aware of anything for this. There is Text.Proper and Text.Upper but they do not do what you are asking. You could try adding column from examples and see if it can figure it out.&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24715" data-lia-user-login="edhans" class="lia-mention lia-mention-user"&gt;edhans&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1522" data-lia-user-login="ImkeF" class="lia-mention lia-mention-user"&gt;ImkeF&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 12:08:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893438#M56072</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-06-10T12:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Text Transformations in Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893456#M56074</link>
      <description>&lt;P&gt;Here's one way to do it in the query editor.&amp;nbsp;&amp;nbsp;To see how it works, just create a blank query, open the Advanced Editor and replace the text there with the M code below.&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("PY3LCsIwFER/Zci69B98RFspLTRxFboI4aLRkIi5Rfx7bzfCrIZzZpxTZiXVKHuPFZLbmzy3wMln9pVjQKZPbdXSOHUpeSO73kBynvXOCtlDlJS+SPFJYNmR0sStCf4V2ae/vh2NhfFYK6NkQqXMlAOJYTs9axym63DEXmOYrBFt+QE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, Answer = _t]),
    #"Lowercased Text" = Table.TransformColumns(Source,{{"Answer", Text.Lower, type text}}),
    #"Added Custom" = Table.AddColumn(#"Lowercased Text", "Custom", each let x = Text.Split([Answer], ". ")
in List.Transform(x, each Text.Upper(Text.Start(Text.Trim(_),1)) &amp;amp; Text.End(Text.Trim(_), Text.Length(Text.Trim(_))-1)))
in
    #"Added Custom"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 12:14:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893456#M56074</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2021-06-10T12:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Text Transformations in Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893567#M56076</link>
      <description>&lt;P&gt;Thanks Pat, I sort of thought that might be the way to go but couldn't wrap my head around the syntax required to make it do it.&amp;nbsp; That's very elegant thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226208" data-lia-user-login="mahoneypat" class="lia-mention lia-mention-user"&gt;mahoneypat&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 12:47:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893567#M56076</guid>
      <dc:creator>suebayes</dc:creator>
      <dc:date>2021-06-10T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Text Transformations in Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893573#M56077</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;for replying, much appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 12:49:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Text-Transformations-in-Power-Query/m-p/1893573#M56077</guid>
      <dc:creator>suebayes</dc:creator>
      <dc:date>2021-06-10T12:49:05Z</dc:date>
    </item>
  </channel>
</rss>

