Hi Team,
I have a query regarding the coloring the bar chart as per a threshold. I have a data which contains initial data and final data, I need to see how much it has changed over a time.
For example, I have a physical training program going on and I need to see how much average weight my clients have lost over the months, calculation for it would be like:
Weight difference = {initial_weight} - {final_weight}
Weight lost = sumIf({Weight Difference},{Weight Difference}>0)
Average Weight = {Weight Lost} /count(participant)
Here I want to segregate the bar colors based on if my ‘Average Weight’ has met a threshold set i.e. ifelse({Average Weight} >= 5, ‘Green’, ‘Red’).
While I know Average Weight is an aggregated field, I have tried a number of ways to deal with it and also looked here, but to no avail.
Can this please be helped?
Regards,