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

Urgent reply please

Hi...what is the equivalent function of DECODE  in qlikview....for example i have this one related to oracle

 

"DECODE(CHROMATIC_MODE, 'N/A', NULL, 'NA', NULL, CHROMATIC_MODE) AS CHROMATIC_MODE "  how we can use it in qlikview....pls help me to get this...

Thanks & Regards,

Anitha.

Labels (1)
3 Replies
Anonymous
Not applicable
Author

Again, taken from online Oracle documentation:

In Oracle/PLSQL, the decode function has the functionality of an IF-THEN-ELSE statement.

The syntax for the decode function is:

decode( expression , search , result [, search , result]... [, default] )

The if statement I posted on your other question about the NPL2 function would work.

Jonathan

Not applicable
Author

thanks for that reply....but how can use i  my case  

DECODE(CHROMATIC_MODE, 'N/A', NULL, 'NA', NULL, CHROMATIC_MODE) AS CHROMATIC_MODE

Regards,

sh.

Anonymous
Not applicable
Author

if(match(CHROMATIC_MODE,'N/A','NA'), NULL(), CHROMATIC_MODE) AS CHROMATIC_MODE

Jonathan