Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
eprehu
Contributor III
Contributor III

Avg count set anlysis

How to calculate the average of this calculatiion : 

eprehu_0-1655299556388.png

Thanks

Labels (1)
4 Replies
vinieme12
Champion III
Champion III

as below

 

=AVG( AGGR(  YourCountExpression ,    FieldToAggregateOn ) )

 

example average count by Country field

=AVG( AGGR(  YourCountExpression ,    Country) )

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
eprehu
Contributor III
Contributor III
Author

thanks but in the count expression, i am counting the number of client reachable and created in a selected period : 

eprehu_0-1655365292393.pngeprehu_1-1655365309559.png

 

If i want the avg, i have 1 as a result : 

eprehu_2-1655365347462.pngeprehu_3-1655365360512.png

 

vinieme12
Champion III
Champion III

Imagine a table with

Dimension = customer_key 

Measure = count(distinct customer_key)

The average of this will always be 1! that is what is happening right now

 

What average do you need exactly?

can you describe if you are trying to count " Avg Customers by ________ ? "

this ______  is the field you should be using for Aggr() 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
eprehu
Contributor III
Contributor III
Author

oh okay thanks, I want to average of customer CREATED AND CONTACTED by week of the month.

For the moment i want to customer created and contactable because i have no idea for the week month

Thanks.