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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Why This set analysis not work?

Hi all,

I post the sample where my set analysis not work ..

Thank to all

Andrea

1 Solution

Accepted Solutions
IAMDV
Master II
Master II

Hi Andrea,

Have you tried to use this expression?

Sum({<YearMonth = {">=$(=Date(addmonths(Max(YearMonth), -12), 'MMM YY')) <=$(=Date(addmonths(Max(YearMonth), 0),  'MMM YY'))"} >} Sales)

I guess its the formating issue. I hope this helps!

Cheers - DV

View solution in original post

13 Replies
Not applicable
Author

Set analysis may not work > operataors when you use the format option. Attached one of the ways to solved the your problem.

Hope it helps,

Kiran.

IAMDV
Master II
Master II

Hi Andrea,

Have you tried to use this expression?

Sum({<YearMonth = {">=$(=Date(addmonths(Max(YearMonth), -12), 'MMM YY')) <=$(=Date(addmonths(Max(YearMonth), 0),  'MMM YY'))"} >} Sales)

I guess its the formating issue. I hope this helps!

Cheers - DV

Anonymous
Not applicable
Author

Thank Kiran for your answer

unfortunately is not wath i want because if u select a month i can not see 12 month before.

Thank

Not applicable
Author

You this expression:

Sum({<YearMonthID ={">$(=Max(YearMonthID)-12)"},YearMonthName= >} Sales)

kiran

Not applicable
Author

You this expression:

Sum({<YearMonthID ={">$(=Max(YearMonthID)-12)"},YearMonthName= >} Sales)

kiran

Anonymous
Not applicable
Author

Ciao DV,

thank u are right now it works...

Thank very much

Andrea

SunilChauhan
Champion II
Champion II

see the attached file and put your data and change thee dimension andd expression accordingly

hope this helps

Sunil Chauhan
Anonymous
Not applicable
Author

Thank kiran , try wath DV send me is that wath i wanted.

Thank for your help

Andrea

Anonymous
Not applicable
Author

Thank Sunil   your attch is very helpfull