I am trying to use X + A*S as expression in my chart. Here X is the average and s is the standard deviation. X and S can be obtained with aggregate function using variable. But value of A is dependent on the sample size (n) which can be obtained with aggregate function as well. Can I dynamically get A value from n using lookup function in Qlikview? Please advice.