I am trying to change the color based on the status column, when I change the status the color shows the same as first color.
ForAll(
data source,
Switch(
Status,
"At Risk",Yellow,"On Track",Green,"Not Yet Started",Gray,"Complete",DarkBlue,"Not On Track",Red))
I have 6 items in the gallery when I change the item from "Not Yet Started" to "On Track". "Not Yet Started" in Pie Chart shows the Red color instead of Gray and another status "Not on Track" to Green. I am not sure what is wrong with the color set