Download page Calculating standard deviation / variance.
Calculating standard deviation / variance
Use case
You have a table (a macro outputting a table) containing a set of numeric values.
You need to calculate the standard deviation or variance.
Solution
Switch the page to the edit mode.
Insert the Table Transformer macro and paste the table within the macro body.
Select the macro and click Edit.
Switch to the SQL query tab.
Enter 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