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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count on a table, filtering by date and time is a variable

Hi, I have a problem that does not make me the count and not to do wrong,

by the variable, vToday as Today

LET vToday = Today ();

statement:

= Count ({<DATE = {$ (= [vToday])}>} CANTIDADPREPARADA)

and gives me "Error: Error in set list element modifier ad hoc ',' or ')' expected.

Many thanks in advance.

Oscar

Labels (1)
4 Replies
sunny_talwar
MVP
MVP

Try this instead:

=Count ({<DATE = {'$ (vToday)'}>} CANTIDADPREPARADA)

sunny_talwar
MVP
MVP

If this doesn't work, then you might have to format today in your variable

LET vToday = Date(Today());

HTH

Best,

Sunny

Not applicable
Author

ok, perfect, thankssssssssssssssssssssssss

sunny_talwar
MVP
MVP

No problem