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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis Help

I am looking to find the number of employees that were terminated in the last 60 days.

SamAccountName is the employee itentifier

Term_Date is the date of termination

This is what I put together so far but I keep getting a result of 0....

=Count(DISTINCT{$<TERM_DATE={'>$(=today()-60)'}>}SamAccountName)

Any Ideas?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

If your termination date format is e.g. 'MM/DD/YYYY', try

=count( DISTINCT {$<TERM_DATE = {">$(=Date(today()-60,'MM/DD/YYYY))"} >} SamAccountName)

View solution in original post

3 Replies
swuehl
MVP
MVP

If your termination date format is e.g. 'MM/DD/YYYY', try

=count( DISTINCT {$<TERM_DATE = {">$(=Date(today()-60,'MM/DD/YYYY))"} >} SamAccountName)

Not applicable
Author

Thank you! That did the trick, I need to remember formatting!

Thanks Again

Not applicable
Author

=Count(DISTINCT{$<TERM_DATE={'>$(=Date(today()-60))'}>}SamAccountName)