Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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)