Forum Discussion
Adding a number to column from an IF statement
- 3 years ago
Hi,
each is wrong.
I have tried the following
if [FromCurrency]= "GBP" then [Year]+5 else [Year]
and it function.
in the formula bar it appears this way
= Table.AddColumn(#"Added Custom1", "Custom", each if [FromCurrency]= "GBP" then [Year]+5 else [Year])
pay attention to the type of your Year column
If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!
Hi,
each is wrong.
I have tried the following
if [FromCurrency]= "GBP" then [Year]+5 else [Year]
and it function.
in the formula bar it appears this way
= Table.AddColumn(#"Added Custom1", "Custom", each if [FromCurrency]= "GBP" then [Year]+5 else [Year])
pay attention to the type of your Year column
If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!
Sorted it, Many thanks for your help.
Jon