补位Text.PadStart/PadEnd

官方说明:
通过在文本值 text 的开头/尾部插入空格,返回填充到长度 count 的 text 值。 可选字符 character 可用于指定用于填充的字符。默认的填充字符是空格。

Text.PadStart/PadEnd(text as nullable text,count as number,optional character as nullable text)as nullable text
start=Text.PadStart(Text.From([编号]),8,"0"),
end=Text.PadEnd(Text.From([编号]),8,"0")
# 注意第一行,如果原位数已经超过8位,则还是返回原来的值。第三参数如不填默认的是用空格补齐。

参考链接:
https://pqfans.com/740.html

本文链接:

https://martin.cool/archives/377.html
1 + 8 =
快来做第一个评论的人吧~