如何只将句子的第一个字母大写

How to capitalize only first letter of a sentence

我知道 m 函数 Text.Proper 可以将句子中的所有单词大写。但是,我想知道如何只将句子的第一个单词大写?

大致如下。您没有指定任何详细信息

= Table.AddColumn(Source, "Converted", each Text.Upper(Text.Middle([Column1],0,1))&Text.Middle([Column1],1,Text.Length([Column1])))

试试这个,Excel 风格 ;-)

let
    Input = "text to capitalize",
    Output = Text.Upper(Text.Start(Input,1)) & Text.End(Input,Text.Length(Input)-1)
in
    Output

已经有几个不错的答案,但这里有另一个选项可以演示更多功能:

Text.Upper(Text.At([Text],0)) & Text.Range([Text], 1, Text.Length([Text]) - 1)