Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Average grouping by serial number in script, how to?

Hey guys,

I have a field called "Serial Number", and another one called "Flight time", I would like to make a Flight Time average per serial number, in the script...

How do I create that??

2 Replies
MVP
MVP

Re: Average grouping by serial number in script, how to?

MainTable:

Load

     [Serial Number]

     [Flight time]

     anotherField1

     anotherField2

From TableName;

Join

Load

     [Serial Number]

     Avg[Flight time] as AvgFlightTime

Resident MainTable

Group By [Serial Number];

Not applicable

Re: Average grouping by serial number in script, how to?

Please use Left Join instead of Join

Community Browser