Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Equivalent of 'OR' function in Qlikview

Good day,

I want to convert this piece of code to Qlikview, please assist:

CASE when TERM IN (0,NULL) then ''X''
5 Replies
sinanozdemir
Specialist III
Specialist III

Hi,

Something like this:

If(TERM = 0 or IsNull(TERM), 'X')

Hope this helps.

petter
Partner - Champion III
Partner - Champion III

You could also do this:

If( Match( TERM , 0 , Null() )  , 'X' )

Kushal_Chawda

try this

=if( len(trim(TERM))=0,'X') as TERM

evan_kurowski
Specialist
Specialist

FOR EACH Value in '',0,Null(),'0',' '

     
Let TERM = IF(Len(Trim('$(Value)'))>0,'$(Value)',0);

     
SWITCH '$(TERM)'
          
CASE 0
               
Trace switch trapped;
          
DEFAULT
               
Trace no switch;
     
END SWITCH


NEXT

Not applicable
Author

Thanks everyone!!!