密码密钥转换类型问题(Power Query)

Cipher Key convert type problems (Power Query)

我正在尝试做一个基本上用其他东西代替数字的函数。

这是我到目前为止所做的:

 (V2 as text) =>
 
 let
     CipherKey = 
       {
       {0,"µ"},
       {1,"@"},
       {2,"¤"},
       {3,"#"},
       {4,"|"},
       {5,"a"},
       {6,"£"},
       {7,"%"},
       {8,"§"},
       {9,"~"}
       }
 
 in
     Text.Combine(List.ReplaceMatchingItems(Text.ToList(V2),CipherKey))

问题是,每当我将其作为新列添加到另一个 table 中时,我仍然每次都会收到“错误:无法将数字转换为文本”

我试过在最后一行添加一个“Number.ToText”,但没有任何改变。

你们有什么线索吗?

最后我找到了答案:

(Num_V2 as number) =>

let
    Num_V2 = Number.ToText(Num_V2)
in

let
    CipherKey = 
      {
      {"0","µ"},
      {"1","@"},
      {"2","¤"},
      {"3","#"},
      {"4","|"},
      {"5","a"},
      {"6","£"},
      {"7","%"},
      {"8","§"},
      {"9","~"}
      }

in

    Text.Combine(List.ReplaceMatchingItems(Text.ToList(Num_V2), CipherKey))