Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
tinkerz1
Creator II
Creator II

Date Greater than one year ago in setanalysis

Hi,

I am trying to count all the reference numbers in a set for the previous year from Todays date.

count({1<MonthLogged={">=$(DATE(Today()-365,'DD/MM/YYYY'))'"}>}ReferenceNumber)

I have formatted Today() into the same format and MonthLogged and expanded the formula.

What am I missing to make this work?

Thanks

Neil.

12 Replies
tinkerz1
Creator II
Creator II
Author

Its showing the whole date range of the data

sunny_talwar

I see nothing wrong with your expression. Would you be able to share a sample?

tinkerz1
Creator II
Creator II
Author

I am afraid I cant sent a sample, however this worked when changing the date to a number in the script.

Count({<NumMonthLogged={">=$(=num(Today())-365)"}>}ReferenceNumber)

But I cant explain why dates wont work