Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Scas1
Contributor
Contributor

Today Function in Set Expression

Hi all,

I'm trying to figure out how to use the today() function within a set expression. Right now, I have this code:

Count({<start_date={"<7/29/2022"}, completion_date={">7/29/2022"}>} id)

Which does exactly what I want, but obviously is not dynamic. I've been trying to figure out the syntax to turn the 7/29/2022 date into today, but nothing I have tried has worked. Thanks!

Labels (3)
1 Solution

Accepted Solutions
sidhiq91
Specialist II
Specialist II

@Scas1  Please see the below expression. 

Count({<start_date={'<$(=Date(Today(),'MM/DD/YYYY'))'}, completion_date={'>$(=Date(Today(),'MM/DD/YYYY'))'}>} id)

If this resolves your issue, please like and accept it as a solution.

View solution in original post

2 Replies
sidhiq91
Specialist II
Specialist II

@Scas1  Please see the below expression. 

Count({<start_date={'<$(=Date(Today(),'MM/DD/YYYY'))'}, completion_date={'>$(=Date(Today(),'MM/DD/YYYY'))'}>} id)

If this resolves your issue, please like and accept it as a solution.

Anku
Creator
Creator

Hi, Please try

Count({<start_date={"$(=Today())"}, completion_date={"$(=Today())"}>} id)