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: 
Not applicable

More than one condition in expression

Hello,

I'm trying to count entities that fits selected daterange

Each entity record has StartDate and EndDate, I use Calendars to set vFromDate and vToDate

According to my meeds I need to Count entities that matches the criteria:

1) CloseDate > vFromDate

2) OpenDate < vToDate

I know how to write one of these two conditions:

=Count({$<OpenDate = {"<$(vToDate)"}>}EntityId)

but how to add the second condition there?

Updated:

Renamed StartDate to OpenDate

Renamed EndDate to CloseDate

1 Solution

Accepted Solutions
Nicole-Smith

Oh sorry, I read the post wrong the first time:

=Count({$<CloseDate = {">$(vFromDate)"}, OpenDate = {"<$(vToDate)"}>}EntityId)

View solution in original post

4 Replies
Nicole-Smith

=Count({$<OpenDate = {">$(vFromDate)<$(vToDate)"}>}EntityId)

Not applicable
Author

Something wrong here: where is the CloseDate?

Nicole-Smith

Oh sorry, I read the post wrong the first time:

=Count({$<CloseDate = {">$(vFromDate)"}, OpenDate = {"<$(vToDate)"}>}EntityId)

Not applicable
Author

Thank you very much!