hi,
I have a table:
and I want to transform column A based on the condition of column B as below:
but it shows the error:
Expression.Error: We cannot apply field access to the type Number.
Details:
Value=0
Key=A
How can I resolve this? I know we can add new conditional column, and then remove the old one, but it is too redundant.
Thanks
I have a table:
A | B |
1 | |
1 | |
2 | 3 |
2 | 3 |
and I want to transform column A based on the condition of column B as below:
Code:
Transform = Table.TransformColumns(#"Changed Type", {"A", each if [A] = null then [B] else [A]})
but it shows the error:
Expression.Error: We cannot apply field access to the type Number.
Details:
Value=0
Key=A
How can I resolve this? I know we can add new conditional column, and then remove the old one, but it is too redundant.
Thanks