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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
gireesh1216
Creator III
Creator III

Need Help

Hello Team,

I have a two fields. one is STATUS_DT and second one is EMPLID. Please find attached excel file.

Requirement: I have a STATUS_DT  filter and selecting two different dates(7/25/2003 and 10/30/2004) like below.But i am expecting all between dates( > =7/25/20003 to < =10/30/2004) employee count. 

GIRI-1.PNG

OUTPUT: I am selecting only two dates  above but expecting all between dates employee counts like below:

GIRI-2.PNG

 

 

Thanks,

Gireesh

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

You need a set expression along the following lines:

Count({<STATUS_DT ={">=$(=Min(STATUS_DT))<=$(=Max(STATUS_DT))"}>} EMPLID)

The exact form depends on the data type and format of the date field. One option if the above does noit work is:

Count({<STATUS_DT ={">='$(=Date(Min(STATUS_DT)))'<='$(=Date(Max(STATUS_DT)))'"}>} EMPLID)

Add a DISTINCT if necessary:

Count({<STATUS_DT ={">=$(=Min(STATUS_DT))<=$(=Max(STATUS_DT))"}>} DISTINCT EMPLID)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
gireesh1216
Creator III
Creator III
Author

Thank you..