Table Filter, Charts & Spreadsheets for Confluence Table Transformer Custom Transformation - use cases with advanced SQL queries Advanced table cells formatting Current: Adding text color PDF Download PDF Download page Adding text color. Current page All pages Adding text color Use caseYou need to merge tables, create a new column with the sum of two others, and then highlight and align text. SolutionSwitch the page to the edit mode.Insert the Table Transformer macro and paste the table or the macros outputting tables within the macro body.Select the macro and click Edit.In the Presets tab select Custom transformation and click Next.Enter the following SQL query: SELECT T1.'Name', T1.'Income 2019', T2.'Income 2020', FORMATWIKI("{cell:textColor=red|align=right}" , ( T1.'Income 2019' + T2.'Income 2020') , "{cell}") AS 'Total Income' FROM T1 OUTER JOIN T2 ON T1.'Name' = T2.'Name' SQL Keep the following order of attribues: bgColor, textColor, align, width. Click Next. Define the table settings and view options if needed. Save the macro and the page. ×