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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
sunil-kumar5
Creator II
Creator II

current month count

Hello All,

I need to get the count of current year however we have some future dated records as well so I just want it to fix as today, can anyone please help. What condition I can use in my below expression.

Count( {<RYear ={'$(=Year(Today()))'}>} Distinct LicenceNo )

Thanks

 

3 Replies
MayilVahanan
MVP
MVP

Hi Sunil,

Try like below

Count( {<RYear ={'$(=Year(Today()))'}, DateField = {"<=$(=Date(Today(),'YourDateFieldFormat'))"}>} Distinct LicenceNo )

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sunil-kumar5
Creator II
Creator II
Author

Hi Mayil,

Its giving a zero as a result any other correction please.

Thanks

Sunil Kumar

MayilVahanan
MVP
MVP

Hi Sunil,

Can you please send the sample app?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.