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 headcount over a period

Hi All -

Thanks in advance for your help!

I'd like to have 2 charts - one showing headcount for Jan, Feb and Mar.

The second showing average headcount for Q1.

I'm using this expression: 

= Count ({$<   STATUS = {"Active","LOA"}   > } DISTINCT EEID )

In chart one, i'm using dimension = month (e.g. 01/01/12)

In chart two, i'm using dimension = quarter(e.g. 2012Q1)

In chart one, i'm using the 'average' plot for trend.  I want this same value showing in chart2.

How do i do it?

See attached pic for more clarity.  Thanks!

Pat

1 Solution

Accepted Solutions
goldnejea8
Partner - Creator
Partner - Creator

Try using the aggr() function.  Then you can get the average over a period of time.

AVG(aggr(Count ({$<   STATUS = {"Active","LOA"}   > } DISTINCT EEID ) ,Month))

View solution in original post

3 Replies
goldnejea8
Partner - Creator
Partner - Creator

Try using the aggr() function.  Then you can get the average over a period of time.

AVG(aggr(Count ({$<   STATUS = {"Active","LOA"}   > } DISTINCT EEID ) ,Month))

Not applicable
Author

Worked like a charm.  Thanks!

goldnejea8
Partner - Creator
Partner - Creator

Excellent, glad to hear!