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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Excluding a Range Within a Range Using Actions

I want an action which selects all data for the year 2016 except for August month.

The following action includes all data (all years) except for August 2016:

'<' & MakeDate(2016,8,1) & '>=' & MakeDate(2016,9,1)

The following action returns all data for 20016 including all data in the future.

='>=' & MakeDate(2016,01,01) & '<' & MakeDate(2016,8,1) & ', >' & MakeDate(2016,8,31) & '<=' & MakeDate(2016,12,31)

The comma doesn't do any changes for the result.

Parantheses are not allowed.

In addtion to this, I've tried almost everything.

Is there a solution to this?

It's way too bad that QlikTech doesn't document the application!

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Have not tested this, but try this:

='(>=' & MakeDate(2016,01,01) & '<' & MakeDate(2016,8,1) & '|>' & MakeDate(2016,8,31) & '<=' & MakeDate(2016,12,31) & ')'

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Have not tested this, but try this:

='(>=' & MakeDate(2016,01,01) & '<' & MakeDate(2016,8,1) & '|>' & MakeDate(2016,8,31) & '<=' & MakeDate(2016,12,31) & ')'

Not applicable
Author

Thank you! The sun is above the horizon!