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

Counting people per Month

Counting people per Month

I have an active staff count using the following Set Analysis:

Count {{StartDate = {"<= $ (vMaxDate)"}, EndDate = {"> = $ (= MonthStart (vMaxDate))"}>} DISTINCT

, Where vMaxDate is = Max (DateNum)

And I want to make a table with the months of the year, where I can have the active staff count as the following example of High ...

tabli.PNG

I can not put the months of the year, the dimension in the table is Month (StartDate), but for the active staff does not work ...

Someone who can help me ???

2 Replies
Digvijay_Singh

Not able to understand much but your set expression needs correction -

1. You reversed the comparison, you should use enddate where you have used start date and vice versa.

2. Also '<' missing in the start.


Check if this works, ensure your dates are of date type and  using same date format across -

Count {<EndDate = {"<= $(=Date($(vMaxDate),'Your date format'))"}, StartDate = {"> = $ (= MonthStart (Date($(vMaxDate),'Your date format'))"}>} DISTINCT

RonaldDoes
Partner - Creator III
Partner - Creator III

Hi Rene,

Maybe you can share an example of your app?