Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
raadwiptec
Creator II
Creator II

true or false

hi alli,

this is my scenario

column A ! Column B ! Final

False           False         False

False            True          True

True             False         True

True              True          True

I need suggestion to get final column

11 Replies
Colin-Albert

As pointed out by Eduardo this should be OR instead of AND

The final table is a Boolean AND  OR of Column A and Column B.

If these fields hold correct True (-1) and False (0) values, then you can use the expression

= columnA OR columnB


MarcoWedel

Hi,

another solution using dual values could be:

QlikCommunity_Thread_196883_Pic1.JPG

table1:

LOAD Pick(Wildmatch(A,'false','true'),Dual('False',0),Dual('True',-1)) as A,

     Pick(Wildmatch(B,'false','true'),Dual('False',0),Dual('True',-1)) as B

INLINE [

    A, B

    False, False

    False, True

    True, False

    True, True

];

hope this helps

regards

Marco