I have a Powerapp that is connected to a SharePoint List, I'm trying to change the color of a gallery icon based on three things:
1) if the status is Yes -P, Yes -M, or Yes -J then show the checkbadge icon in green
2) if the status is No then show the cancelbadge in red
3) If Date 2 is empty but the status is Yes -P, Yes -M, or Yes -J show the checkbadge icon in yellow
I have tried to use many different if's over the last few days. I have it working to show the First two items with the switch, but the third item is where I'm having difficulties. Below is what I have for code on the color of the icon badge:
Switch(ThisItem.'Status'.Value,
"Yes - P", Color.Green,
"Yes - M",Color.Green,
"Yes - J",Color.Green,
Color.Red)
Any help would be greatly appreciated.