Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Multi conditional expression

Hello,


I want to do this, but if I understood correctly, it's not allowed to use AND and OR in expression.

I work with QV 10.

Have you an other solution ?

In expression ==>

= if(

(

(Comptabilite.type = 'QCO' OR Comptabilite.type = 'TER' OR Comptabilite.type = 'RIS') AND isnull(Comptabilite.dateregcom)

)

OR

(

(Comptabilite.etat = 'S' or isnull(Comptabilite.etat)) AND not isnull(Comptabilite.dateregcom)

)

, sum(Comptabilite.primettc) - sum(Comptabilite.commission))

Thanks a lot,

Victor

2 Replies
jonathan_dau
Contributor III
Contributor III

Maybe you could try this one. Not sure though

=

     if(

Comptabilite.type = 'QCO' OR

Comptabilite.type = 'TER'  OR

Comptabilite.type = 'RIS' AND

isnull(Comptabilite.dateregcom),sum(Comptabilite.primettc) - sum(Comptabilite.commission),

     if(

Comptabilite.etat = 'S' OR

isnull(Comptabilite.etat) AND

not isnull(Comptabilite.dateregcom), sum(Comptabilite.primettc) - sum(Comptabilite.commission)))

Jonathan

Not applicable
Author

It give the same result