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: 
Not applicable

Trouble calculating the average

Im not sure if the output I want is possible I hope it is so here goes.

I have a field which calculates the difference between two times.

At present the information outputted is only correct if I have only one day selected.

Is it possible to display the average for a months set of data but then the actual sum for a single day

10 Replies
jfkinspari
Partner - Specialist
Partner - Specialist

The aggr function calculates the

sum(CHKS)-sum(SCH)

per possible combinations of FlightNo and Date (this should be equilliant to the unique departure) The result will be a string of numbers like this

6.2,3,1.2,10,4

You can then use any aggreation function, like sum, avg or stddev, to transform the result into on single value.