The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

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

Priya Ramakrishnan
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
June 19, 2020

Hi Priya,

The query is

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

Thanks So much!!

TAGS
AUG Leaders

Atlassian Community Events