Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Calculated Column If Statement

Hi Experts

 

Need and if statement to do the following based on the flag column.... (see sample date)

if we have 1 in the flag column then in the new status column insert the text from Amended Status column otherwise Current Status value in New status column.

 

IDCurrent StatusAmended StatusFlagNew Status
1New Business   
2New BusinessRenewal1 
3Renewal   
4New BusinessRenewal1 
5Renewal   
6New BusinessRenewal1 
7Renewal   
8New Business   
9RenewalNew Business1 
10RenewalNew Business1 
  • Anonymous 

    Column = IF('Table'[Flag]=1,'Table'[Amended Status],'Table'[Current Status])
    
    Measure = IF(max('Table'[Flag])=1,max('Table'[Amended Status]),max('Table'[Current Status]))

1 Reply

  • smpa01's avatar
    smpa01
    Community Champion

    Anonymous 

    Column = IF('Table'[Flag]=1,'Table'[Amended Status],'Table'[Current Status])
    
    Measure = IF(max('Table'[Flag])=1,max('Table'[Amended Status]),max('Table'[Current Status]))