Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count all over due items

Hello, I need help getting the total count of records that have a target date prior to today in Qlik Sense.

count({$<[WORK_ORDER.PERCENTAGE_COMPLETE]-='100',[TARGET_COMPLETION_DATE]= {'<$(date(today(),'DD/MM/YYYY'))'}>} WO_TYPE)

I have two conditions that I'm checking for, percentage complete is not 100%, indicating the work is not done, and the target date is less than today.

The code above doesn't work for me.

Any help is appreciated.

Thanks in advance!

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try this:

     Count({<[WORK_ORDER.PERCENTAGE_COMPLETE]={"<100"}, TARGET_COMPLETION_DATE={"<$(=today())"}>} WO_TYPE)

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Try this:

     Count({<[WORK_ORDER.PERCENTAGE_COMPLETE]={"<100"}, TARGET_COMPLETION_DATE={"<$(=today())"}>} WO_TYPE)

Anonymous
Not applicable
Author

This shouls work, if the [TARGET_COMPLETION_DATE] has format 'DD/MM/YYYY':

count({$<[WORK_ORDER.PERCENTAGE_COMPLETE]-='100',[TARGET_COMPLETION_DATE]= {"$(='<' & $(date(today(),'DD/MM/YYYY')))"}>} WO_TYPE)

Not applicable
Author

Thank you! this code worked.

Anonymous
Not applicable
Author

Awesome!

You can mark thread as answered/closed.