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: 
Jnkansayeboah
Contributor
Contributor

How do I count IDs within a particular date range?

I want to count a particular set of ID numbers within a particular fiscal year. I have started with the code below, but it is currently not working. Can anyone help correct the code please?

Count({<[Event Date]={">=$((Date($(vMinFiscalYear),'DD/MM/YYYY'))) <=$((Date($(vMaxFiscalYear),'DD/MM/YYYY')))">}[IDs])

1 Reply
Taoufiq_Zarra
MVP
MVP

@Jnkansayeboah 

can you try

Count({<[Event Date]= {"<=$(=Date(vMaxFiscalYear,'DD/MM/YYYY')) >=$(=Date(vMinFiscalYear,'DD/MM/YYYY'))"}> } [IDs])
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉