Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to add COUNTRY_={"Singapore"} & COUNTRY_={"CASH SALES"} ?

Hi All

I have 2 expression both are okay :-

Sum({$<year = {$(=Max(year)-0)}, month = {"<=$(=Max({<year={$(=Max(year))}, sales = >} month))"},COUNTRY_={"Singapore"}>}sales/Rate)

Sum({$<year = {$(=Max(year)-0)}, month = {"<=$(=Max({<year={$(=Max(year))}, sales = >} month))"},COUNTRY_={"CASH SALES"}>}sales/Rate)

I like to conbine them into 1 expression , but cannot work :-

Sum({$<year = {$(=Max(year)-0)}, month = {"<=$(=Max({<year={$(=Max(year))}, sales = >} month))"},COUNTRY_={"CASH SALES"}+COUNTRY_={"Singapore"}>}sales/Rate)

Can some one advise me.

Paul

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

......,COUNTRY_={[CASH SALES],'Singapore'} .....

Regards,

Antonio

View solution in original post

3 Replies
paulyeo11
Master
Master
Author

my qvw

antoniotiman
Master III
Master III

......,COUNTRY_={[CASH SALES],'Singapore'} .....

Regards,

Antonio

paulyeo11
Master
Master
Author

Thank you sir