Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
hammermill21
Creator III
Creator III

Excluding values in expressions

Hello!

I have a list of units I am pulling in but there are a few I want to exclude form a statement. How would I do that? Currently, I have a dimension called Unit which brings in 17 different units. I guess I need to know what to include in that expression to be able to exclude some of the units.

Thanks!

1 Solution

Accepted Solutions
hammermill21
Creator III
Creator III
Author

That worked!! Thank you as always Sunny!!!

View solution in original post

11 Replies
sunny_talwar

May be like this in set analysis

{<Units -= {'Unit1', 'Units2', .... and so on}>}

hammermill21
Creator III
Creator III
Author

Hey Sunny,

Thank you! But when I do that {<Unit -= {'sccc', 'sicu'}>}, it says there is an error in expression.

sunny_talwar

What is the whole expression you are using?

hammermill21
Creator III
Creator III
Author

See below, it's just "Unit" since I'm bringing it in via API that's what the field is called.

Capture.JPG

sunny_talwar

Try this as calculated dimension:

If(Not Match(Unit, 'sccc', 'sicu'), Unit)

and keep 'Show Null Values' unchecked

vinieme12
Champion III
Champion III

Refer thsee threads on Set Analysis

Set Analysis: syntaxes, examples

https://www.analyticsvidhya.com/blog/2014/01/set-analysis-qlikview/

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable

Hi Elizabeth,

What QlikView version are you using?

hammermill21
Creator III
Creator III
Author

That worked!! Thank you as always Sunny!!!

hammermill21
Creator III
Creator III
Author

Thanks Vineeth.