Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Conditional Coloring for Pie/donut Chart

Hi everyone.

 

I have a little problem, I have to create some donut chart, but the code colours should be based on the value of a field, these is the table:

I have to create differents donut, one for each category, and the Average of rating by each category. The code colour should follow these rules:

If AVG(Rating)<5 then Red

If AVG(Rating) >=5  AND AVG(Rating)<8 Then Yellow

If AVG(Rating) >=8 Then Green

 

I think that I would need a calculated field with these rules, and add this field in the data colors of the object, but I can´t (or I don´t know) create a field calulated with AVERAGE function.

 

Any suggestion? Thanks a lot.

5 Replies