Forum Discussion
Calculated Column with multiple AND & OR
- 4 years ago
Anonymous try this:
Overall Status = IF( Initiatives[Stage] IN { "Demand Qualification", "G0 Approval", "G1 Approval", "G2 Approval", "G3 Approval", "G4 Approval", "G5 Approval" }, IF( Initiatives[Status] = "0", 1, IF( Initiatives[Status] IN {"1","2"} && Initiatives[Description] = BLANK(). 1, 0 ) ) )
Anonymous try this:
Overall Status =
IF(
Initiatives[Stage]
IN {
"Demand Qualification",
"G0 Approval",
"G1 Approval",
"G2 Approval",
"G3 Approval",
"G4 Approval",
"G5 Approval"
},
IF(
Initiatives[Status] = "0",
1,
IF(
Initiatives[Status] IN {"1","2"}
&& Initiatives[Description] = BLANK().
1,
0
)
)
)
Hi Sparta,
Thanks for you reply.
When I try the provided solution I get the following error message:
Function 'CONTAINSROW' does not support comparing values of type Integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.
Any idea of how to get around that ?
- SpartaBI4 years agoCommunity Champion
I think because your status column is a text, I'm adding "" around the relevant places in the original messages, you will see this in a minute
- Anonymous4 years agoNot applicable
You were right with the status code column beeing text.
But still think there are something wrong with you code.
E.g. a project with Initiatives[Stage] = G2 Approval and
Initiatives[Status] = 1 and Describtion BLANK will be assigned with 0- Anonymous4 years agoNot applicable
Sorry. It was me messing up with a column name. It seems to work flawlessly! Thanks alot