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

show values between dates

Does anyone have a solution for counting a value which is valid between the start date and the end date. See the between date qvw.

I only want to count valid values within the selected YEARMONTH_PER field.

  • count(distinct ID)if(DATE_PER > Startdate AND DATE_PER <= Enddate)

the syntax above is not working 😞

Hope someone has a solution or knows how to handle this kind of situations..

11 Replies
Not applicable
Author

Thanks for this excellent solution John! This is exaclty where I was looking for!

biester
Specialist
Specialist

Hi !

if(DATE_PER > Startdate,if(DATE_PER<Enddate,count(distinct ID),0),0)

HTH,

Martin