Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Coombsie
Contributor II
Contributor II

Standard Deviation Help

Hi

I'm struggling to get a standard deviation result to match excel which it must as the results must match previously issued figures.

I have simplified the data down to just a list of results so I can use a straightforward expressions of just stdev(Result).

I have also tried adding a multiplier '*sqrt((n-1)/n)' which only made a fractionally small change to the result. 

I have attached some sample data which excel gives a result of 26.6% however Qlik Sense gives a result of 13.7%.

Is anyone please able to tell me how to calculate this so the figures match?

2 Replies
Coombsie
Contributor II
Contributor II
Author

Hi. This post has been up for a few weeks. Is anyone able to help with this one as I am at a loss still on how the get the figures to match? Any assistance will be greatly appreciated

chrismarlow
Specialist II
Specialist II

Hi,

Have you tried putting the data from your spreadsheet into a separate app?

If I do I get the Excel result (see below), suggests to me that the StDev is not being calculated on what you think it is being calculated on. I did try excluding the 0's to see if I could get the 13.7, but don't get the same value.

Where I would go next with this is I think you need an AGGR to pre-aggregate before applying the StDev, but you would need to share more on how the data you have shared came together to say more than that.

Cheers,

Chris.

20210721_1.png