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: 
Not applicable

set analysis restrict

Hi

I use set analysis to create “Sum 12 last month amount “ column

When I select one customer it work good ,  But when I select country

The “Sum 12 last month amount “ give me the amount for all customers and not the

“Sum 12 last month amount” for each one of them.

Why?

year

month

Customer name

country

Current month amount

Sum 12 last month

amount

2013

2

AAA

A

100

5000

2013

2

BBB

A

200

5000

2013

2

CCC

A

300

5000

Maybe I need somehow to add the “customer” to the formula

Here my set analysis

=sum({<Calendar_Date= {">=$(=MonthStart(Max(Calendar_Date), -11))<=$(=MonthEnd(Max(Calendar_Date)))"},Calendar_Year=, Calendar_Month= , [Calendar Month/Year], From_MonthYear=, To_MonthYear= ,Calendar_MonthName= >}   Total_Amount )

Thank you

0 Replies