Hello,
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.
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):
SELECT
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'
FROM T1
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:
Please let me know if you have any questions.
You are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 - https://wiki.vertuna.com/display/TEST/Averages%2C+totals%2C+sums+and+standard+deviation+calculation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.