Table Filter, Charts & Spreadsheets for Confluence Table Transformer Custom Transformation - use cases with advanced SQL queries Executing calculations with SQL Current: Calculating time difference PDF Download PDF Download page Calculating time difference. Current page All pages Calculating time difference Use caseYou need to calculate time difference. 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 *, FORMATWORKLOG(T1.'Time 1'-T1.'Time 2') AS 'Time Difference' FROM T1 SQL Click Next.Define the worklog settings.Save the macro and the page. ×