Forum Discussion

JAVED's avatar
JAVED
Helper I
7 years ago
Solved

Subtracting a column with condition

Hi!

i have a column A with 0 to 380 numbers in repeatred manner and another column X with Strings like Lower1,Outer1,Middle,Outer2,Lower2,Now i have to creat a column like  Column A values should subtract with 380 When they are equal to  Outer2 and Lower 2 of column X.PLease give me a idea how to over come this.

 

 

 

Thanks and Regards 

Javeed

  • Hi JAVED,

     

    You can create a calculated column like below: 

     

    Column = IF('Table2'[X]="Outer2" || Table2[X]="Lower2",'Table2'[A]-380,BLANK())

     

     

    Best Regards,
    Qiuyun Yu 

1 Reply

  • v-qiuyu-msft's avatar
    v-qiuyu-msft
    Community Support

    Hi JAVED,

     

    You can create a calculated column like below: 

     

    Column = IF('Table2'[X]="Outer2" || Table2[X]="Lower2",'Table2'[A]-380,BLANK())

     

     

    Best Regards,
    Qiuyun Yu