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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

nested IF and wildmatch

Hi experts

I need to build 4 values for a system status: closed, open, deleted and '0'.

There might be a combination of "closed" and "deleted" as given by the screen below: "NOCO" is closed and "DLFL" is deleted.

TomBond77_0-1666100333807.png

My loading script doesn't work correct: any ideas how to solve it?

If(WildMatch([RSNOTIFIC__RXSYSTST], '*DLFL*'), 'Deleted', If(WildMatch([RSNOTIFIC__RXSYSTST], '*NOCO*'), 'Closed',
If(WildMatch([RSNOTIFIC__RXSYSTST], '*NOPR*', '*OSNO*'), 'Open', 0))) as [Notif. Status],

Labels (3)
1 Solution

Accepted Solutions
Or
MVP
MVP

Coalesce(Pick(Wildmatch([RSNOTIFIC__RXSYSTST],'*DLFL*','*NOCO*','*NOPR*','*OSNO*'),'Deleted','Closed','Open','Open'),'0')

Note that the order in which the options are listed will determine which one is prioritized when more than one exists.

View solution in original post

1 Reply
Or
MVP
MVP

Coalesce(Pick(Wildmatch([RSNOTIFIC__RXSYSTST],'*DLFL*','*NOCO*','*NOPR*','*OSNO*'),'Deleted','Closed','Open','Open'),'0')

Note that the order in which the options are listed will determine which one is prioritized when more than one exists.