Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rubenacampos
Contributor III
Contributor III

If and statement

Hello,

I have the following if statement but I keep receiving an error message:

=if({<[Procurement Type]={"SERVICES","A&E","R&D","CONSTRUCTION"},[Procurement Action]-={"*MOD*"}>}[Procurement Type])

I want to show in a pie graph the procurement types for Services, A&E, R&D, and Construction but exclude the procurement actions coded as a Mod type.  I am using a wild card b/c there are multiple types of Mods.

Thank you in advance!

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try changing your expression to this

=if(match([Procurement Type],'SERVICES','A&E','R&D','CONSTRUCTION') and wildmatch([Procurement Action],'*MOD*'),[Procurement Type])

View solution in original post

2 Replies
Vegar
MVP
MVP

Try changing your expression to this

=if(match([Procurement Type],'SERVICES','A&E','R&D','CONSTRUCTION') and wildmatch([Procurement Action],'*MOD*'),[Procurement Type])

rubenacampos
Contributor III
Contributor III
Author

Thank you, it worked!