Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

comparison using set analysis

Hi,

I want to compare the end date with the current date within a set expression,if the end date is lesser than the current date,i would want to perform a count on empid i.e., I need a function to perform something like this count({$<End={'<today()'}>}Emp_ID) .So can anyone explain how this could be acheived?

5 Replies
tresesco
MVP
MVP

try like:

Count({<End={'<$(=Date(Today()))'}>} Emp_ID)

Not applicable
Author

count({<End = {"<$(=today())"}>} Emp_ID)

MayilVahanan

Hi

Try like this

Count({<End={'<$(=Date(Today()))'}>} Emp_ID)

And make sure , the date format are similar. If vary,

Try with

Count({<End={'<$(=Date(Today(),'MM/DD/YYYY'))'}>} Emp_ID)

Instead of 'MM/DD/YYYY' -> use ur format

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hi Mayil,

Thanks for the solution

Not applicable
Author

Hi

Can you you please explain how the same functionality could be achieved by equating the end date’week to today’s week within the same set expression