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

how to exclude a value

I have a field which has certain values like so :

TYPE = { dev, prod, test}

How can I exclude only test from this field in my template?

1 Solution

Accepted Solutions
iktrayanov
Creator III
Creator III

If (TYPE <> 'test', TYPE)

View solution in original post

5 Replies
iktrayanov
Creator III
Creator III

Use expression like

if(match(TYPE,'dev','prod'),TYPE)

Regards,

Ivan

Not applicable
Author

Thanks.. but there are more values in the field than what I have given above around 15 of them and I have to exclude just 'test' it would be easier if there was a function just to exclude the value 'test'

Alejandro_Hernández
Former Employee
Former Employee

SUM({<TYPE-={'test'}>} Value)

iktrayanov
Creator III
Creator III

If (TYPE <> 'test', TYPE)

Not applicable
Author

Thank you