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

Need help in Table Calculations using SQL query in Confluence Table Transformer Macro

Jitendra Shembekar April 14, 2023

Hi

Trying to get multiplication result in the last column of the below table. I am using table transformer sql query. Query itself does not give any error but it gives below error after publishing it.

Please help.

Table used

RangeActual ValueC1C2Multiplication
20211100 
30290.550 
40880.550 

 

  • Want to put multiplication of C1 and C2 values under Multiplication column
  • SQL used in Table Transformer is
    • UPDATE T1 SET T1.'Multiplication' = T1.'C1'*T1.'C2'
  • Error I am getting
    • TypeError: Cannot read properties of undefined (reading 'C1')

How to resolve this?

 

 

1 answer

1 accepted

3 votes
Answer accepted
Stiltsoft support
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.
April 14, 2023

Hi @Jitendra Shembekar ,

Please use the following query for the case:

UPDATE T1
SET T1.'Multiplication' = ('C1' * 'C2');

SELECT * FROM T1

Jitendra Shembekar April 14, 2023

Excellent ... that worked!

Thanks a lot @Stiltsoft support 

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events