Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IF and AND in the same expression

Hi Community,

I need to count NULL registers, when 2 conditions are required at the same time. I've try with

=COUNT(IF([Fecha de devolución a cedente]='' AND [Fecha de recepción]= '') id_counter1) but no luck. I'd appreciate if you could bring some light in my darkness!

Thanks in advance for your help!

Regards,

Vincent

3 Replies
Not applicable
Author

Try:

COUNT( IF ([Fecha de devolución a cedente]='' AND [Fecha de recepción]= '', id_counter1) )

Not applicable
Author

Hi Ajay,

It hasn't worked, but I've finally managed to do it.

FYI:

= COUNT( IF (IsNull([Fecha de devolución a cedente]) AND IsNull([Fecha de recepción]) , id_counter1 ) )

Regards,

Vincent

jagan
Partner - Champion III
Partner - Champion III

Hi Vincent,

You can try this in set analysis

= COUNT({<[Fecha de devolución a cedente]-= {'*'}, [Fecha de recepción]-={'*'}>} id_counter1 )


Regards,

Jagan.