Forum Discussion

OSS's avatar
OSS
Helper III
7 years ago
Solved

IF function problem

Dear members   Actually I want to perform very simple task.   I have 'Account number' and 'Amount' column in my table. I would like to create new column with if condition   In Excel, it looks l...
  • PattemManohar's avatar
    7 years ago

    OSS Please try this..

     

    NewAmount = IF(LEFT(Test181[Account],1)="1",Test181[Amount],IF(LEFT(Test181[Account])="2",Test181[Amount]*-1,0))

  • Anonymous's avatar
    Anonymous
    7 years ago

    hi,

     

    shouldnt it be like this:

     

    NewAmount = IF(LEFT(Test181[Account],1)="1",Test181[Amount],IF(LEFT(Test181[Account],1)="2",Test181[Amount]*-1,0))