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: 
tmumaw
Specialist II
Specialist II

Date Calculation

Hi All, Need a little help with an expression.  I'm trying to count the number of active employees between a date range using set analysis.  I have 2 variables the user can select from on a screen.  First on is a valid from and the next one is a valid to.  From some reason just can't figure it out.  Thanks

 

Here is what I have so far:

Count({<Num_Date_ZWKDATE = {"=> $(vStartDate)"} & {"<= $(vEndDate)"}>}Distinct ActiveEmpID)

Labels (2)
1 Solution

Accepted Solutions
bharathadde
Creator II
Creator II

Try this

=Count(Distinct {<Num_Date_ZWKDATE = {'>= $(=vStartDate)<= $(=vEndDate)'}>} ActiveEmpID)

View solution in original post

1 Reply
bharathadde
Creator II
Creator II

Try this

=Count(Distinct {<Num_Date_ZWKDATE = {'>= $(=vStartDate)<= $(=vEndDate)'}>} ActiveEmpID)