Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
MonikaF
Contributor
Contributor

Count if status draft AND date occurred more than 3 days

I am trying to set up a count for events that has been in the status draft for more than 3 days. I have setup the following:

count ({<[Events: Incident Status]={'Draft'}>} isEvent and (Date(Now()))-([Events: Date occurred])>3)

but it only takes the first part in the counting (counts all events in draft) and not only the events in draft for more than 3 days.

Please help

Labels (1)
1 Solution

Accepted Solutions
TauseefKhan
Creator III
Creator III

Hi @MonikaF,

Check this one:

count({<[Events: Incident Status]={'Draft'}, [Events: Date occurred]={"<$(=Date(Today()-3))"}>} isEvent)

** When applicable please mark the correct/appropriate replies as "solution". Please LIKE threads if the provided solution is helpful to. **

View solution in original post

1 Reply
TauseefKhan
Creator III
Creator III

Hi @MonikaF,

Check this one:

count({<[Events: Incident Status]={'Draft'}, [Events: Date occurred]={"<$(=Date(Today()-3))"}>} isEvent)

** When applicable please mark the correct/appropriate replies as "solution". Please LIKE threads if the provided solution is helpful to. **