I have a source table with columns 'Version', 'Supported until', 'Target' and 'Comments'.
I want to use a table transformer to conditionally color rows, based on the value of the 'Supported until' date, in relation to the current date.
I need a red background color for any rows where the 'Supported until' date (entered via the calendar control) is less than the current date.
Where the 'Supported until' date <=30 days ahead of the current date, I need the row color to be amber.
For rows where the 'Supported until' date is between 31 and <=60 days ahead of the current date, then I want to give the whole row a background colour of green.
For any other rows, which will have a 'Supported until' date of >60 days from the current date, then the background color just needs to be a default white.
How do I use the FormatWiki function to do this most easily and concisely, also coloring the row with the designated color, whether the respective 'Target' and 'Comments' columns contain data or not (these are optional fields, as well as 'Version'). Or is there a better way of doing the same?