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 statement

it should put out R and S will display as RX and O and P as OTC.

What I I missing?

if(Dual(RxOtcInd = 'R','S', 'RX') ,(RxOtcInd= 'O','P', 'OTC'))

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this:

If(Match(RxOtcInd, 'R', 'S'), 'RX',

     If(Match(RxOtcInd, 'O', 'P'), 'OTC'))

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

May be this:

If(Match(RxOtcInd, 'R', 'S'), 'RX',

     If(Match(RxOtcInd, 'O', 'P'), 'OTC'))