Forum Discussion
Anonymous
1 year agoNot applicable
Calculated column if error
Hi Experts trying to write the following if statement and as calculated column, but its not working as expected.. FLAGS = IF('ORANGE (FACT)'[CSA_FLAG] = "Y" && 'ORANGE (FACT)'[CSE_FLAG] = "Y...
- 1 year ago
Hi,
Use the Switch function and re-write your formula as below:
Flags (forum) = SWITCH ( True (), 'ORANGE (FACT)'[CSA_FLAG] = "Y" && 'ORANGE (FACT)'[CSE_FLAG] = "Y", "CSA and CSE", 'ORANGE (FACT)'[CSE_FLAG] = "Y" && 'ORANGE (FACT)'[CSE_FLAG] = "N", "CSA Only", 'ORANGE (FACT)'[CSE_FLAG] = "N" && 'ORNAGE (FACT)'[CSE_FLAG] = "Y", "CSE Only")If this solved your problem then please mark it as the solution so others can see it.
Best,
MNedix
1 year agoSolution Sage
Hi,
Use the Switch function and re-write your formula as below:
Flags (forum) =
SWITCH (
True (),
'ORANGE (FACT)'[CSA_FLAG] = "Y" && 'ORANGE (FACT)'[CSE_FLAG] = "Y", "CSA and CSE",
'ORANGE (FACT)'[CSE_FLAG] = "Y" && 'ORANGE (FACT)'[CSE_FLAG] = "N", "CSA Only",
'ORANGE (FACT)'[CSE_FLAG] = "N" && 'ORNAGE (FACT)'[CSE_FLAG] = "Y", "CSE Only")
If this solved your problem then please mark it as the solution so others can see it.
Best,
Anonymous
1 year agoNot applicable
Hi Mnedix dose not give the expected result