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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Approximation of Hourly Census

Hi,

I am trying to approximate a 24 hourly census in a bar chart using the following expression:

=Round(avg(aggr(Sum(CensusIn),CensusHour,VisitDate))

+ avg(aggr(sum(EDTime),CensusHour,VisitDate))/2

- avg(aggr(sum(CensusOut),CensusHour,VisitDate)))

Its a pretty good approximation, but if I filter on a specific day, it quite a bit off.

Any ideas?

Thanks,   Jonathan

0 Replies