Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Shubhangi_01
Contributor III
Contributor III

Set expression of date that is less than today's system date

Hello,

I need to take out percentage of date values which are less than today's date against total number of project count using Set expression.

I tried this :

=Count({$<([Launch Date])<{">=$(=Date(Today(), 'YYYY-MM-DD'))"}>}) / Count(DISTINCT ProjectID)

But this is throwing error.

Any help appreciated. Thanks in advance.

 

Regards,

Shubhangi

1 Solution

Accepted Solutions
Taoufiq_Zarra

Hi,

you forgot to mention [Launch Date],

but if I add the file header, the loading script:

datt.PNG

so, the funcion becomes

='count of Launch date which are less than todays date :'& count({<"Date([Launch date])" = {"<=$(=MakeDate(Year(Today()),Month(Today()),Day(Today())) )"}> } Code)

and the result :

datt.PNG

but be careful with null dates

Cheers,

Taoufiq

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

6 Replies
Taoufiq_Zarra

I think you forgot the measure: "count" of what? in Count({$<([Launch Date])<{">=$(=Date(Today(), 'YYYY-MM-DD'))"}>}) 

Taoufiq

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Shubhangi_01
Contributor III
Contributor III
Author

Hi,

I want count of Launch date which are less than today's date.

Can you help me in forming the expression?

Thanks in advance.

 

Regards,

Shubhangi

Taoufiq_Zarra

can you share the sample data

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Shubhangi_01
Contributor III
Contributor III
Author

Hi,

Please find the attached Sample data file.

 

Thanks,

Shubhangi

Taoufiq_Zarra

Hi,

you forgot to mention [Launch Date],

but if I add the file header, the loading script:

datt.PNG

so, the funcion becomes

='count of Launch date which are less than todays date :'& count({<"Date([Launch date])" = {"<=$(=MakeDate(Year(Today()),Month(Today()),Day(Today())) )"}> } Code)

and the result :

datt.PNG

but be careful with null dates

Cheers,

Taoufiq

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Brett_Bleess
Former Employee
Former Employee

Did Taoufiq's last post get you what you needed?  If so, do not forget to come back to the thread and use the Accept as Solution button on that post to give him credit for the assistance and let other Community Members know it worked.  If you are still working on things, leave an update as to what you still need.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.