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

Is it possible to perform sum calculation in a confluence table?

Naama Lev
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.
October 1, 2014

Hello, 

Is it possible to perform a simple sum calculation in a table in confluence?

Is there any plugin that help to do it?

Thanks

Naama

 

5 answers

15 votes
Adrien Ragot 2
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.
October 1, 2014

To complete Geert's answer:

Disclaimer: I'm the author of Play SQL Spreadsheets.

Sascha Ziemann April 1, 2020

Table Enchancer can not calculate.

Sascha Ziemann April 1, 2020

Play SQL can not work with Confluence tables. The data must be stored in a SQL database.

Like Chris Hopkins likes this
Sascha Ziemann April 1, 2020

I wish I can down vote.

Jaclyn Mazzarella
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 1, 2020

Hi Sascha! There is a paid app called Excellentable- Spreadsheets for Confluence, where you can perform the SUM formula along with tons of other features. You can try it free for 30 days too! Hope his helps. 

7 votes
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.
October 28, 2015

Hello,

There is one more add-on - Table Filter. It has a Pivot Table macro that allows you to make different calculations on a table.

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.
April 1, 2020

Also, there is the Table Transformer macro that can do complex calculations.

Sascha Ziemann May 26, 2020

I tried it but this results always in a 2x2 table with 1 value.

2020-05-26 15_26_49-306_20_15 - Referenzumgebung - K3LS Documentation.png

Looks pretty ugly. Localization does not work either.

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.
May 26, 2020

Please, see the docs on how the Pivot Table macro works.

Also, you can add a total row / column to the table using the Table Filter macro.

Or use Table Transformer macro for more complex calculations.

Please, share your use case and I'll recommend the best approach.

Sascha Ziemann May 27, 2020

I have a table with three columns. Columns A and B have always a value. Column C has only in some rows a value. I want to count the rows, in which column C is empty.

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.
May 27, 2020

Here are some examples:

Count number of rows with not empty Column C:

2020-05-27_17h06_12.png

Count number of rows with empty Column C:

2020-05-27_17h07_48.png2020-05-27_17h08_56.png

Calculate sum of Column A and Column B in Column C when Column C is not filled with value:

2020-05-27_17h14_28.png

SELECT *,
CASE
WHEN T1.'Column C' IS NULL THEN T1.'Column A' + T1.'Column B'
ELSE T1.'Column C'
END AS 'Column C'
FROM T*

 Let me know if any of theses examples suits your needs.

Sascha Ziemann May 28, 2020

Yes but the result is always a table, although the sum is just one value. Is it possible to get just the sum value in order to put it inline into text paragraph?

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.
May 28, 2020

Unfortunately, it is not possible to do these tools.

CelesteCS May 28, 2020

Hello,

In case of CelesteCS Math plug-in you may use the COUNTA function in the following manner:

There are {COUNTA(Table1.C2, Table1.C3, Table1.C4, Table1.C5) } empty cells in the table.

Just add Numerical Expression macro to the page, insert your text insert it and specify the formulas in curly braces. Parameters configuration is described here.

Thanks!

Katerina Rudkovskaya _Stiltsoft_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 12, 2022

Hi @Sascha Ziemann

We've released the improvement that allows you to get a single value from Pivot Table as an inline text. Please update the app and use the Show result as plain text option.

image2022-8-19_12-23-10.png

Katerina
Stiltsoft

1 vote
CelesteCS October 8, 2014

Hello, Naama!

For any calculations in Confluence, including any manipulations with table data, you may use CelesteCS Math for Confluence. There are versions for both Confluence Server and Confluence Cloud.

Assume you have a table with three columns and three rows on your page – from A1 till C3, where row 1 is the header row. The sum calculation formula for rows 2 and 3 will be simple:

SUM(Table1.A2:C3)

There is a plenty of other functions in the macro, so you may perform any calculations using formulas in EXCEL style.

Thanks!

Sascha Ziemann May 26, 2020

50$ just for a simple sum?

CelesteCS May 26, 2020

Sascha,

Not just for SUM. There are hundreds of functions and it really works. 

Thanks!

1 vote
Geert Graat
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.
October 1, 2014

Hi,

There are 2 plugins I know of:

The free one only allows to show a total row. With the paid one you can do more advanced stuff.

Regards,

Geert

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events