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: 
jameswills
Contributor III
Contributor III

Expression Help!

HI All,

I'm after some help with what I'm sure is a simple expression. Still can't get a handle on the syntax layout

I have a date field (DD/MM/YYYY) and a select in field button which identifies dates prior to today i.e. Overdue. The working button syntax is '='<' & Date(Today(),'DD/MM/YYYY').

What I'd now like to do is visualise a count of these overdue dates by another dimension (DIVISION). I've created a bar chart with DIVISION as the dimension so am looking for help in creating the expression syntax to calculate a count of dates prior to Today() please?

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

May be this?

Count({<datefield = {"<$(=Date(Today(),'DD/MM/YYYY'))"}>} datefield)

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

View solution in original post

3 Replies
Anil_Babu_Samineni
MVP
MVP

May be this?

Count({<datefield = {"<$(=Date(Today(),'DD/MM/YYYY'))"}>} datefield)

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
Anil_Babu_Samineni
MVP
MVP

When you say prior it should this?

Count({<datefield = {">=$(=Date(Today(),'DD/MM/YYYY'))"}>} datefield)

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
jameswills
Contributor III
Contributor III
Author

Thanks Anil, both work great but it's the second expression which is returning what I need. Thanks for the reply