Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis question - rolling dates

Hi,

I'm trying to limit a bar chart to show only the past 8 weeks worth of total Events. Have googled lots of responses and found ways of restricting to a date range, but not really a solution that acts like a rolling 8 weeks.

It works fine without the "-56" to get me the latest date, but as soon as I put -56 in, it doesn't work. Then I tried wrapping a Date function around the =Max...-56 but that didn't work either. I think I'm getting the syntax wrong?

Count({1<DateField={">=$(=Max(DateField)-56)"}>}  Event_Id)

Was hoping someone could help?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Edit: (Should also be 48, not 56)

Nevermind, got it!

Count({1<DateField={">=$(=Date(Max(DateField)-48))"}>}  Event_Id)

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Edit: (Should also be 48, not 56)

Nevermind, got it!

Count({1<DateField={">=$(=Date(Max(DateField)-48))"}>}  Event_Id)

Anil_Babu_Samineni

You can mark your response as correct answer

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