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: 
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.

Labels (1)
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
MVP
MVP

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.