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: 
Not applicable

Correct Expression help please?


HI,

I need to calculate the count of ID which have Scheduledate where Scheduledate not equal to NULL.

can anyone help me with expression

I used below expression but it seems not getting data correct values

If(Scheduledate,Count(Distinct(ID)))

14 Replies
mvanlutterveld
Partner - Creator II
Partner - Creator II

Yep, you're correct.

Not applicable
Author

Can you try:

Count(Distinct {<Scheduledate={"$(= '>=' & Today() & '<=' & Today())"}>}ID )


THanks



SunilChauhan
Champion II
Champion II

hello ,

why not simply use below

Count(Distinct if( Isnull(Scheduledate)=0,  ID))



isnull give -1 for true and 0 for false


hope this helps

Sunil Chauhan
MK_QSL
MVP
MVP

=COUNT(DISTINCT {<Scheduledate -= {''}>} ID)

Not applicable
Author


Thanks.