I have pie chart which does not show the color properly where it uses choices column. It shows different than the one which is below.
ForAll(AddColumns(GroupBy(Task,Task.value, "Label"),"Count", CountRows(Label)),
Switch(
Task.value,
"At Risk", Color.Yellow,
"Complete", Color.DarkBlue,
"On Track", Color.Green,
"Not On Track",Color.Red,
"Not Yet Started",Color.Gray
)
)