Hello
A user is having some strange behaviour when trying to change a bar charts column colours.
They have a SharePoint list with a single line of text column called "Status"
SharePoint records are loaded into a collection (Ive also tried pointing the chart directly to the SharePoint list) -
ClearCollect(Records,
'SharePoint List'
);
The bar chart 'Items' is set to -
AddColumns(
GroupBy(
Records,
"Status",
"SubGrp"
),
"Count",
CountRows(SubGrp)
)
The bar chart ItemColorSet is set to -
ForAll(
Records,
Switch(
Status,
"complete",
Color.Blue,
"on track",
Color.Green,
"delayed",
Color.Red,
"Paused",
Color.Purple,
Color.Black
)
)
But all the columns show as the colour blue, matching the "complete" records color. If i remove "complete" from the formula -
ForAll(
Records,
Switch(
Status,
"on track",
Color.Green,
"delayed",
Color.Red,
"Paused",
Color.Purple,
Color.Black
)
)
All the columns are then black.
If i exclude any records that equal "complete" when populating the collection -
ClearCollect(
List,
Filter(
'SharePoint List',
Status <> "complete"
)
);
Then all the remaining columns are coloured correctly as per the switch formula.
The only difference is theres 26 records that equal "complete" and only 1 of the other types but can't see why that would make a difference.
Any ideas?
Thanks