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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average of an average help

LinesOrdersLines/Order
1025
100502

With this data, I would make a chart and it graphs 5 and 2. Each company in my data model has a lines/order number.

I want an average Lines per order overall.

In this case, it would be 3.5 (2+5).

But now, I am using this

=Round(Median(Aggr(Count({<[Customer] = >} so_id)/ Count( {< [Customer] = >}DISTINCT SO_detail_created_by),Segment, Segment)))

But this gives me 110/52, which is not the number I am looking for. Segment is each customer's line of business, like lumber or construction or something.

Any help is appreciated.

1 Solution

Accepted Solutions
Not applicable
Author

I solved this issue by creating another table in load script, and doing the division of the 2 fields into another field.

View solution in original post

2 Replies
rubenmarin

Hi Aaaron, not sure of what you want, maybe using Avg() instead of Median()

If it's not because of Median()... which value you expect from that sample?

Not applicable
Author

I solved this issue by creating another table in load script, and doing the division of the 2 fields into another field.