Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis. Previous 30 days interval

Hi there.

OK, after a number of hours going round the subject, I ask you to please help me with the following set analysis expression.

The data structure is as follows (illustrative):

 

Invoice_numDate_field
1022110/04/2014
1022211/04/2014
1022311/04/2014
1022411/04/2014
1022512/04/2014
1022612/04/2014
1022714/04/2014
1022815/04/2014
1022916/04/2014
1023016/04/2014
1023116/04/2014

Now, considering the most recent date in the Date_field I'd need to count how many invoices have been issued in the last 30 days. I.e. if the most recent date is 16/04/2014, I should be considering invoices issues from 17/03/2014 on.

I've found some similar unsolved questions and the expression I've managed to get is something like this:

Count({$<Date_field={">=$(=max(Date_field)-30)"}>}Date_field)

But it doesn't work. It returns 0.

I don't know if it has to do with data format or if it's just a syntax problem.

As always, many thanks in advance.

M.

12 Replies
sunny_talwar

Would you be able to create a new thread and add some sample data and explain what output you are looking to get Jim?

jim_chan
Specialist
Specialist

ok i gonna create new thread.

sunny_talwar

Awesome, thanks!!!