I'm trying to build a pie chart where I have a list of rows with different dates('transfer date') and am trying to for that date and the number of rows display a color of green, yellow, or red on the sections of the pie chart
green being when 0-3 months after the transfer date
yellow being 4-9 months after the transfer date
red being 10 or more months after the transfer date.....
I tried doing a case statement similar to the following:
CASE
when `custtransdate` <= (`custtransdate` + 90) then 'green'
when `custtransdate` >= (`custtransdate` + 120) and `custtransdate` < (`custtransdate` + 270) then 'yellow'
when `custtransdate` >= (`custtransdate` + 300) then 'red'
END
but it then only displays everything as 'green' and how do you set the colors as specific colors, or would there be a better chart to do this of
thanks for any help provided