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

IF(MATCH STATEMENT

In Qlik Sense I am trying to use a IF MATCH statement in a filter pane and when I save it, it says OK

Below is an example of the statement.

This is what shows up on the table.

=If(Match(UDRxUnbilled, 'B-1'), 'UDRX Bill Only',

If(Match(UDRxUnbilled, 'BO'), 'RX Bill Only',

If(Match(UDRxUnbilled, 'P-1'), 'UDRX Unbilled',

If(Match(UDRxUnbilled, 'PO'), 'RX Billed',

If(Match(UDRxUnbilled, 'QO'), 'RX Retro Quick',

If(Match(UDRxUnbilled, 'R-1'), 'UDRX Reversal',

If(Match(UDRxUnbilled, 'RO'), 'RX Reversal',

If(Match(UDRxUnbilled, 'UO'), 'UDRX Billed'))))))))

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

For nested if's use combination of PICK(Match   instead

=PICK(Match(UDRxUnbilled, 'B-1','BO','P-1','PO','QO','R-1','RO','UO')

, 'UDRX Bill Only',

'RX Bill Only',

'UDRX Unbilled',

'RX Billed',

'RX Retro Quick',

'UDRX Reversal',

'RX Reversal',

'UDRX Billed')

or

=AGGR(

PICK(Match(UDRxUnbilled, 'B-1','BO','P-1','PO','QO','R-1','RO','UO')

, 'UDRX Bill Only',

'RX Bill Only',

'UDRX Unbilled',

'RX Billed',

'RX Retro Quick',

'UDRX Reversal',

'RX Reversal',

'UDRX Billed'),UDRxUnbilled)

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

View solution in original post

3 Replies
Chanty4u
MVP
MVP

i think there is only values  aviavlbe which reflecting in listbox?  did you checked it?

Chanty4u
MVP
MVP

and check with data once ,here only B-1,P-1,R-1   values only giving.    BO,PO,RO,UO   these are not giving check the data once

vinieme12
Champion III
Champion III

For nested if's use combination of PICK(Match   instead

=PICK(Match(UDRxUnbilled, 'B-1','BO','P-1','PO','QO','R-1','RO','UO')

, 'UDRX Bill Only',

'RX Bill Only',

'UDRX Unbilled',

'RX Billed',

'RX Retro Quick',

'UDRX Reversal',

'RX Reversal',

'UDRX Billed')

or

=AGGR(

PICK(Match(UDRxUnbilled, 'B-1','BO','P-1','PO','QO','R-1','RO','UO')

, 'UDRX Bill Only',

'RX Bill Only',

'UDRX Unbilled',

'RX Billed',

'RX Retro Quick',

'UDRX Reversal',

'RX Reversal',

'UDRX Billed'),UDRxUnbilled)

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