Hi,
I have a column chart that displays values per month
The values themselves range from 0 to 3
I also have a radio control that allows to select year with the default year set to 2020
Now, I want to format the color of the bars based on the values, 0 - 1.99 = Red, 2 - 2.99 = Orange, 3 = Green
I sort of have it do what I want for each year except for the default selected, 2020. Then it starts formatting the value 3 as red
My Item Color Set it set to this, what am I not getting right in this?
I'm using a For All to format based on the value
ForAll(
Filter(
ReportHead,
Adress.Id = Gallery2_9.Selected.ID,
RadioYear.SelectedText.Value in Text(
Date,
"[$-en-US]yyyy"
)
),
If(
Value(AvgValue) >= 3,
Color.LightGreen,
If(
Value(AvgValue) >= 2 && Value(AvgValue) < 3,
Color.Orange,
If(
Value(AvgValue) >= 0 && Value(AvgValue) < 2,
Color.Red
)
)
)
)