Hi Guys,
I have been trying to figure out a conditional formula for my output.
My formula is simple that if the account number is 70007 I want its respective number to be negative.
hence I use the below expression but it seems to throw an error.
IF Contains([Account],"70007") THEN [Amount] = - [Amount]
ELSE [Amount] ENDIF
Input file
| Account | Amount |
| 70007 | 100 |
| 70007 | 300 |
| 20010 | 456 |
| 2000010 | 500 |
| 70007 | 8 |
| 4461241 | 514 |
| 78623 | 8500 |
| 532524 | 900 |
| 70007 | 600 |
Expected output
| Account | Amount |
| 70007 | -100 |
| 70007 | -300 |
| 20010 | 456 |
| 2000010 | 500 |
| 70007 | -8 |
| 4461241 | 514 |
| 78623 | 8500 |
| 532524 | 900 |
| 70007 | -600 |