Forum Discussion
Libbya
4 years agoNew Member
IF Statement help
Hi I have created a new column and now trying to create the following If statement to return either 1,2 or 3 in the new column but get a syntax error message. Any suggestions? Qtr1 Results = I...
Anonymous
4 years agoNot applicable
Hi Libbya ,
I agree with ryan_mayu . And there is another doubt, whether your [Green], [Amber] and [Red] are text, or a column, if it is text, please use double quotes to quote the text. For example,
Qtr1 Results =
IF (
'Tier 2 FY23'[Qtr1] = "Green",
"1",
IF (
'Tier 2 FY23'[Qtr1] = "Amber",
"2",
IF ( 'Tier 2 FY23'[Qtr1] = "Red", "3" )
)
)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.