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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help needed on set analysis

Hi All,

Hope everyone is doing great.

I need small help in indirect set analysis.

I am calculating current year Sales for products which got sales both lat year and this year.

i have tried this using set analysis as given below.

Sum({<Sales= p({<Sales= {"=Sum({1<Year={$(=Max(Year))}>}Sales)>0"}>})*

p({<Sales= {"=Sum({1<Year={$(=Max(Year)-1)}>}Sales)>0"}>})>}Sales)


but the above expression calculating sales for all the products irrespective of the P() condition.


Can someone throw some light around the issue here.

Thanks in advance,

Regards,

Nani

21 Replies
sunny_talwar

Sounds good... will try to test this theory out in the mean time (if I get time)

Not applicable
Author

Sorry for the late reply Sunny.But i was in training till today and was not able to have a look at it.

The solution worked as expected.

Thanks,

Nani