Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

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

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?