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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
kevbrown
Creator II
Creator II

Set Analysis For Month

Hi,

Easy question but I've had a mental block.  I'm looking to find out the current number of employees I have and I don't want that to change no matter what selections on date is made. The field I have are CalMonth, CalYear, CalDay, Person ID and Leaving Date. So Leaving date must be null and I need to count distinct Person ID

Thanks

Kev

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=COUNT(

     {<

          CalMonth=, CalYear=, CalDay=, [Leaving Date] =,

          [Person ID] = {"=Len(Trim([Leaving Date]))=0"}

     >}

     Distinct [Person ID])

View solution in original post

3 Replies
MK_QSL
MVP
MVP

=COUNT(

     {<

          CalMonth=, CalYear=, CalDay=, [Leaving Date] =,

          [Person ID] = {"=Len(Trim([Leaving Date]))=0"}

     >}

     Distinct [Person ID])

kevbrown
Creator II
Creator II
Author

That worked, thanks, however I've had a rethink.

I think what I need to know is how many current employees there are at a certain date. So Leaving date must be null or greater than the date selected in the calendar and Starting date must be less than the date selected

MK_QSL
MVP
MVP

If you have another question, would be better if you raise another thread with example or sample data.