Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to subtract two columns of a table and create a extra column which holds the values?

Priya Ramakrishnan June 19, 2020

Hi....I am new to Creating charts and tables with confluence.

I am using Table transformer macro. In a page I created the macro by typing {table transformer} inside the macro I pasted my table which looks like this

Capture.PNG

And then I am going to Edit mode of Table Transformer and Clicking on Custom transformation in Presets and in SQL i see SELECT * FROM T*

What I wanted to do is, create a Column in addition to the existing table as 'Remaining' which is 'Total' - 'Finished'.

How should i write an SQL Query to do this?

Kindly help me with this.

1 answer

1 accepted

2 votes
Answer accepted
Andrey Khaneev _StiltSoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 19, 2020

Hi Priya,

The query is

SELECT *, 'Total' - 'Finished' AS 'Remaining' FROM T*
Priya Ramakrishnan June 20, 2020

Thanks So much!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events