Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
yunus_emre
Contributor II
Contributor II

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
MVP
MVP

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
MVP
MVP

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 II
Contributor II
Author

It is working, thank you so much