cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Wrong colors in the pie chart after being predefined

Hello community!

I faced the following issue:

I have a collection Progress Pie, a table grouped by count of values, defined by this code:

 

Spoiler
AddColumns(
GroupBy(
ProgressPie,"Scope_and_Rigor_Value","CALC"),
"Labels",CountRows(CALC)
)

The collection is created on button click that leads to this screen.

 

nopy4uk_1-1604661280689.png

 

When I define a color of pie chart using the following expression (I tried also Switch - the same result):

 

Spoiler
ForAll(
ProgressPie,
If(
Scope_and_Rigor_Value = "Not Evaluated",
Color.DarkGray,
Scope_and_Rigor_Value = "Initiated",
Color.Yellow,
Scope_and_Rigor_Value = "Established",
Color.DarkGreen,
Scope_and_Rigor_Value = "Not Evident",
Color.OrangeRed,
Color.Green
)
)

Expanded and Not Evaluated slices have the same color: 

 

nopy4uk_0-1604661201019.png

 

Do you know how to get rid of that? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

I found the solution right after posting the topic.

Removed the group code from the chart and moved it to the button.

View solution in original post

1 REPLY 1
Frequent Visitor

I found the solution right after posting the topic.

Removed the group code from the chart and moved it to the button.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (108,702)