Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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