Powerquery M 公式中的令牌文字
Token literal in Powerquery M formula
我在以下 powerquery M 公式中收到令牌文字预期错误。错误指向 **
之间的部分
if
(if [Value 1] = true then [Value 2] - [Value 3] else [Value 3] - [Value 4]) < [Value 1] and
**if**
(if [Value 1] = true then [Value 2] - [Value 3] else [Value 3] - [Value 4]) > 0 then 1 else
Please note this is this a part of a bigger formula, but only this part gives an error.
Does anyone has an idea how to solve this?
如果公式在最后一个 else 之后结束(我假设为 0),则很难判断,但删除额外的 IF 应该有效
如果
(如果 [值 1] = true 则 [值 2] - [值 3] 否则 [值 3] - [值 4]) < [值 1]
和
(如果 [值 1] = true 则 [值 2] - [值 3] 否则 [值 3] - [值 4]) > 0
然后 1 否则 0
我在以下 powerquery M 公式中收到令牌文字预期错误。错误指向 **
之间的部分if
(if [Value 1] = true then [Value 2] - [Value 3] else [Value 3] - [Value 4]) < [Value 1] and
**if**
(if [Value 1] = true then [Value 2] - [Value 3] else [Value 3] - [Value 4]) > 0 then 1 else
Please note this is this a part of a bigger formula, but only this part gives an error.
Does anyone has an idea how to solve this?
如果公式在最后一个 else 之后结束(我假设为 0),则很难判断,但删除额外的 IF 应该有效
如果
(如果 [值 1] = true 则 [值 2] - [值 3] 否则 [值 3] - [值 4]) < [值 1]
和
(如果 [值 1] = true 则 [值 2] - [值 3] 否则 [值 3] - [值 4]) > 0
然后 1 否则 0