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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Calculating Standard Deviation with Confiforms


I am trying to find a way to calculate the standard deviation for data inside of a confiform table. The issue I run into is that when using the tableview merger and field macros it only resolves summations and thus the square root property is not calculated properly. I have not been able to figure out a way to implement IFTTT or a field rule in order to collect the data from previous entries in order to calculate this value either.


Im not skilled with Javascript and was wondering if anyone had any tips or solutions to this issue.

2 answers

2 accepted

Hi @alex b ,

You can calculate the standard deviation with the help of the Table Transformer macro bundled in the Table Filter and Charts for Confluence app. The app is compatible with ConfiForms.

1. Place the macro outputting tables within the Table Transformer macro body:


2. Use the following SQL query (select the functions depending on what you'd like to calculate):

MEDIAN(T1.'Value') AS 'Median',
STDDEV(T1.'Value') AS 'Standard deviation population',
STDEV(T1.'Value') AS 'Standard deviation sample',
VAR(T1.'Value') AS 'Variance sample',
VARP(T1.'Value') AS 'Variance population'

Where 'Value' is the label of the column from the source table with values, 'Median' and others are the labels of new outputted columns with results.


The result is as follows:

2019-12-17_15h45_49.pngPlease let me know if you have any questions.

Thank you! That was super easy to follow. Much appreciated!

You cannot do that with a ConfiForms TableViewMerger (or setting the expression in the ValueView), as the calculations are done per row / record

But you can do it with a little help of JavaScript and using ConfiForms REST APIs, as shown here, on our wiki -

Thank you for the help! Much appreciated.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

335 views 23 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you