Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

expression: using a time span

=Count(date_scheduled_fixed>vToday and date_scheduled_fixed<DayStart(Today()+7))

dont look at that as actual qlik code, but what would be the correct syntax for something like this.

I just want to show the number of dates between today and 7 days from now.

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

May be this?

=Count(IF(date_scheduled_fixed>vToday and date_scheduled_fixed<DayStart(Today()+7, date_scheduled_fixed))


missed a parenthesis


=Count(IF(date_scheduled_fixed>vToday and date_scheduled_fixed<DayStart(Today()+7), date_scheduled_fixed))

View solution in original post

4 Replies
vishsaggi
Champion III
Champion III

May be this?

=Count(IF(date_scheduled_fixed>vToday and date_scheduled_fixed<DayStart(Today()+7, date_scheduled_fixed))


missed a parenthesis


=Count(IF(date_scheduled_fixed>vToday and date_scheduled_fixed<DayStart(Today()+7), date_scheduled_fixed))

Anil_Babu_Samineni

May be you missed parenthesis

=Count(IF(date_scheduled_fixed>vToday and date_scheduled_fixed<DayStart(Today()+7), date_scheduled_fixed))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vishsaggi
Champion III
Champion III

Yes. I missed for DayStart(). Thank you.

Anonymous
Not applicable
Author

Thank's alot, the solution Vishwarath gave worked.