以 M 为动力 ^ (Power BI)

To the Power ^ in M (Power BI)

我在 Power BI 中创建自定义列

= Table.AddColumn(Fact_Sale, "Custom", each 2^[Sale Key] , type number)`

我尝试使用 ^ 表示幂运算符,但出现错误

我尝试 google 但是当我搜索 power 运算符时,我得到的只是 Power Query(相同的名称使得搜索变得困难)

我找到了这个,但是对于 hte power operator 什么都没有 https://msdn.microsoft.com/en-us/query-bi/m/operators

我该怎么做?

Power 是作为函数而不是运算符实现的。

Number.Power(2, 3) 会给你 8

power