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: 
dukane24
Contributor III
Contributor III

Set Analysis Syntax When Extra Function is Included

I was wondering if somebody could give me some advice on what I'm doing wrong here.  This works fine until I include the piece where I'm trying to count items where the Est. Completion Date is 'less than' today.  I've tried multiple variations (less than in place of equals, with and without $, etc.)  and it seemed to work at one point but it was showing results where the Est. Completion Data was not being factored in at all.  As-is below, my chart is just saying "No data to display".  I have my date fields set in date format (M/D/YYYY) in the the load script.

count({$<[Current Status]-={'Completed','Withdrawn'},[Est. Completion Date]={$'<'(=Today(1))}>}[Defect ID])

I appreciate any advice you may have.  Thanks!

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

count({$<[Current Status]-={'Completed','Withdrawn'},[Est. Completion Date]={"<$(=Date(Today(1),'M/D/YYYY'))"}>}[Defect ID])


Hope it helps.


Note:

Please make sure both dates are in same format.

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

View solution in original post

4 Replies
jerem1234
Specialist II
Specialist II

Try this:

count({$<[Current Status]-={'Completed','Withdrawn'},[Est. Completion Date]={"<$(=Today())"}>}[Defect ID])

or

count({$<[Current Status]-={'Completed','Withdrawn'},[Est. Completion Date]={"<$(=Date(Today(),'M/D/YYYY'))"}>}[Defect ID])



Hope this helps!

Anonymous
Not applicable

Try this:

count({$<[Current Status]-={'Completed','Withdrawn'},[Est. Completion Date]={"$(='<' & today())"}>}[Defect ID])

MayilVahanan

Hi

Try like this

count({$<[Current Status]-={'Completed','Withdrawn'},[Est. Completion Date]={"<$(=Date(Today(1),'M/D/YYYY'))"}>}[Defect ID])


Hope it helps.


Note:

Please make sure both dates are in same format.

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

Thank you!