Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
vikikhalifer
Contributor II
Contributor II

Exclude specified values from data set

Hi All, 

I have a data set of values for which I need to calculate avg and stdev.

The data set is changing according to selection 

the problem is how to exclude specific values from this data set based only on the value itself for example : 

 
 
SpecHighNumSpecLowNumResultNum
34.5729.5731.0597
34.5729.572.194e-005
34.5729.571.709e-005
34.5729.578.61e-005
34.5729.5731.07532
34.5729.5731.07119
34.5729.5730.4953
34.5729.5730.49381
34.5729.5730.49354
34.5729.5730.49419
34.5729.5730.49384
34.5729.5731.05629
34.5729.57-2.374e-005
34.5729.57-1.366e-005
34.5729.573.512e-005
34.5729.5731.04768
34.5729.5731.03064
34.5729.5730.9684
34.5729.5731.02707
34.5729.5731.01977
34.5729.5731.07196
34.5729.5731.06855

in this case I need to ignore values of ResultNum that are +/-5*stdev +/- ResultNum 

Is that possible?

 

Thanks in advance

1 Reply
Brett_Bleess
Former Employee
Former Employee

Viki, you would need to load your entire model, calculate the standard deviation, then do resident load to drop the values that do not fit within the range you want, believe you would need to use the Peek function to check the next record, compare and keep or drop etc.  

Best I can do other than that is give you the Design Blog area of Community to search the posts there to see if you can find something that fits what you need.  

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Actually, I may have found something that I think will put you on the right track to a degree:

https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.