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: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Avg not as expected

Hi All,

I have a table of stats  split by Region / Sub Region/ Sales Person. I am not trying to show the averages in another table by Region but the avg's are different to what i get if i export the first table into Excel . 

Can anyone see what i am doing wrong with the attached?

In excel i get 8.2

 

 

 

1 Solution

Accepted Solutions
sunny_talwar

Try this expression

=Avg(Aggr(
	Count(_%Visit)/Count({<[Image Level], [Group Outlet Type]>}DISTINCT [Worked Day])
, Territory, [Sales Rep], Region))

View solution in original post

3 Replies
sunny_talwar

Try this expression

=Avg(Aggr(
	Count(_%Visit)/Count({<[Image Level], [Group Outlet Type]>}DISTINCT [Worked Day])
, Territory, [Sales Rep], Region))
hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Thanks Sunny, that works!

I have noticed that you have removed the = from the set analysis, was there a reason for that?

sunny_talwar

Sorry that is just out of habit. Having FieldName = is equivalent of FieldName. You can add that back.