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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Ho to calculate average assortment

We have table OrderRows:

with columns: idDoc(FK), idGoods(FK) and etc

Please, can u say if it really to calculate avereage assortment as:

sum(count(distinct idGoods) group by idDoc)/count(distinct idDoc)

1. how this expression will look like?

2. we are using operator group by idDoc in sql query, but what the analog of group by in qlikview?

thanks

2 Replies
martin59
Specialist II
Specialist II

Hi,

You can try this in a text object to test, before to use the expression in others QV objects :

avg(aggr(Count(Distinct idGoods), idDoc))


Not applicable
Author

thank you very much!