Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average No of Days

Hi,

I have the following data. I want to calculate average decisioning days. I think average would not be the better to calculate it. Which one would be better method to calculate. Is there any option to calculate average no of days with and without outliers. Which approach could be the best one. Is there any option to use normal distribution or something else.

IDDecisioning Days
111110
111121
111132
111141
111152
111162
111172
111181
111192
111201
111211
111223
111233
111241
111251
111262
1112730
1112825
1112924
5 Replies
agilos_mla
Partner - Creator III
Partner - Creator III

Hi,

Please Check this post:

http://community.qlik.com/message/440542#440542

Michael

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You could exclude outliers based on fractiles (aka percentiles). For example this would exclude the top 1% and bottom 1% of the values:

Avg(Aggr(If(DecisioningDays < Fractile(Total DecisioningDays, 0.01) Or DecisioningDays  > Fractile(Total DecisioningDays , 0.99), DecisioningDays), ID))

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Jonathan,

Thanks but it does not calculate.

agilos_mla
Partner - Creator III
Partner - Creator III

You don't need the aggr sice Fractile is not an aggregation function. Try :

Avg(If(DecisioningDays < Fractile(Total DecisioningDays, 0.01) Or DecisioningDays  > Fractile(Total DecisioningDays , 0.99), DecisioningDays))

HTH,

Michael

Not applicable
Author

Michael,

It's giving me 33 decisioing days but it should be 2 days. As I have the follwoing frequency: Majority of apps fall under 4 days.

FinalDecision WorkingDaysNo of Apps%
01101.48%
1194126.05%
2204427.43%
3172523.15%
498013.15%
52072.78%
61061.42%
7670.90%
8410.55%
9220.30%
10200.27%
11120.16%
12150.20%
13140.19%
14130.17%
15140.19%
16190.25%
1790.12%
1860.08%
19100.13%
2060.08%
2180.11%
2240.05%
2390.12%
2420.03%
2510.01%
2620.03%
2730.04%
2820.03%
2950.07%
3140.05%
3320.03%
3420.03%
3510.01%
3610.01%
3710.01%
3810.01%
3920.03%
4010.01%
4110.01%
4220.03%
4320.03%
4420.03%
4530.04%
4620.03%
4710.01%
4810.01%
4920.03%
5020.03%
5410.01%
5710.01%
Total7452100.00%