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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

AVERAGE ISSUE

Hello all,

how can I calculate the average product sold in one month ,  where the divisor is not only the dates where the product is sold, but the total number

of dates in that period.

see abstracted example

Thanks in advance!

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: sum(Customer)/interval(monthend(max(Date))-monthstart(min(Date))-1,'D')


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: sum(Customer)/interval(monthend(max(Date))-monthstart(min(Date))-1,'D')


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks this works!!

Do you have also a suggestion to calculate this in case days are split in morning, -7-16, evening,17-24,

night 1- 6?