Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
spividori
Specialist
Specialist

Set Analysis

HI.

I have two fields: AñoMes and Cantidad. I need to show me the sum of the latest four months.

You should take as latest month, the month of the date actual. In the attached example would be taking Oct 13, Aug 13, Sep 13 and July 13.

Must be independent of any selection, if I choose Jan 13, these values ​​should not be modified.

Regards.

1 Solution

Accepted Solutions
tresB
Champion III
Champion III

3 Replies
tresB
Champion III
Champion III

PFA

swuehl
MVP
MVP

Maybe like attached, using this expression:

Sum({<

AñoMes = {">=$(=date(addmonths(max({1}AñoMes),-3),'MMM YY'))<=$(=date(max({1}AñoMes),'MMM YY'))"}

>} Cantidad)

spividori
Specialist
Specialist
Author

Hi.

Thanks for responding.The two examples work perfect.

Regards.