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

rolling 12 months sales

I'm using:

Sum({<Date={">=$(=ADDMONTHS(MAX(Date), -12))<=$(=MAX(Date))"},Year=,Month=,Quarter=>}Sales)

to calculate rolling 12 months sales (rolling from the max date within a selected time range). For example, if I select 09/20/2018-09/24/2018, I want the expression sum up sales from 09/24/2017-09/24/2018.

However, in current expression, if I select 09/20/2018-09/24/2018, it will show me sales for 09/20/2018-09/24/2018. I don't know how I can fix this expression... Please help!!


Any advice helps! Thanks in advance!!

1 Solution

Accepted Solutions
karthikeyan1504
Creator III
Creator III

Hi Yuang,

I have replicated your expression creating a new app. It's working as expected for me.

Do you want to double check?

Thanks,

Karthikeyan.

View solution in original post

2 Replies
karthikeyan1504
Creator III
Creator III

Hi Yuang,

I have replicated your expression creating a new app. It's working as expected for me.

Do you want to double check?

Thanks,

Karthikeyan.

wanyunyang
Creator III
Creator III
Author

Yes it works