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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
yunus_emre
Contributor III
Contributor III

A function usage set analysis in the set analysis

Hi experts,

I'm trying to use set analysis in the set analysis, however, I'm getting an error.

My expression is like this:

=sum({<[Customer] = {"=sum({<Calendar = {">= $(=min(Calendar))"}>} sales_amount) >= 1000000"}>} aggr(sum(sales_amount), [Customer]))


I suppose that the problem is "Calendar = {">= $(=min(Calendar))".


Do you have any idea what correct syntax is?

1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try a different quote other than double quote for the inner search, like square brackets:

=sum({<[Customer] = {"=sum({<Calendar = {[>= $(=min(Calendar))]}>} sales_amount) >= 1000000"}>} aggr(sum(sales_amount), [Customer]))

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Try a different quote other than double quote for the inner search, like square brackets:

=sum({<[Customer] = {"=sum({<Calendar = {[>= $(=min(Calendar))]}>} sales_amount) >= 1000000"}>} aggr(sum(sales_amount), [Customer]))

yunus_emre
Contributor III
Contributor III
Author

It is working, thank you so much