How to customize table content conditionally

We are using Jira macro to show the filter result in confluence page in tabular format.
Now we want to show the table column content should show conditionally …in jira the status will show…like if its done then in GREEN and if its In progress then in YELLOW.

So here we have a column called Billing Status with Running, started and Done…so if the billing status is Running then it should show in YELLOW, if its started then it should show RED etc…