Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Solved! Go to Solution.
pls try this
Qtr1 Results = IF('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Green],"1",If('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Amber],"2",If('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Red],"3")))
the last equal sign is wrong, should be comma.
Proud to be a Super User!
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.
pls try this
Qtr1 Results = IF('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Green],"1",If('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Amber],"2",If('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Red],"3")))
the last equal sign is wrong, should be comma.
Proud to be a Super User!
@Libbya , try like
Qtr1 Results = IF('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Green],"1",If('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Amber],"2",If('Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Red]="3")))
Or Try Switch
Qtr1 Results = Switch(True() ,
'Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Green],"1",
'Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Amber],"2",
'Tier 2 FY23'[Qtr1]='Tier 2 FY23'[Red]="3")
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 25 |