Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Abhi_WP
Contributor III
Contributor III

Nested If statement Issue

I am trying to derive a dimension called Quarter using below expression but it is not validating. 

= IF([Work Order Completed Code] = {'AC', 'NA'}, [Quarter], If(Len(Trim( [Allocated Quarter] )) > 0, [Allocated Quarter], [Quarter]))

I am trying to achieve - If Work order is completed (AC, NA) then use 'Quarter' field, else if 'Allocated Quarter' field is not null then use 'Allocated Quarter' field else use 'Quarter' field.

Labels (2)
1 Solution

Accepted Solutions
Abhi_WP
Contributor III
Contributor III
Author

Managed to solve the issue. Changed the statement to 

= IF(match([Work Order Completed Code], 'AC', 'NA'), [Quarter], If(Len(Trim( [Allocated Quarter] )) > 0, [Allocated Quarter], [Quarter]))

 

Thanks

View solution in original post

1 Reply
Abhi_WP
Contributor III
Contributor III
Author

Managed to solve the issue. Changed the statement to 

= IF(match([Work Order Completed Code], 'AC', 'NA'), [Quarter], If(Len(Trim( [Allocated Quarter] )) > 0, [Allocated Quarter], [Quarter]))

 

Thanks