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: 
lprill
Partner - Contributor
Partner - Contributor

Set Analysis with two sub-Set Analysis don't work

Hi,

i have the following Set-Analysis:

 

SUM( DISTINCT
	{<
		prospect={'B', 'C'},
		Rolling12turnover={">=$(=vTurnover12Mon)"},
		Rolling12purchasedates={">=$(=vPurchasedates12Mon)"},
		Clientnr={"=sum(
					{<
						inv_date={[>=$(=date('$(vFilterdate)'))]}
					>}
					purchasedate)>=$(=$(vpurchasedatesSFilter))"},
		Clientnr={"=sum(
				{<
					inv_datum={[>=$(=date('$(vFilterdate)'))]}
				>}
				turnover)>=$(=$(vturnoverSFilter))"}
	>}
flag_check)

 

 

Looking quite simple to me, but it don't work.

The first three statements always work and also together with one of the last two, but the last two statements in the Set-Analysis don't work together.

Any Suggestions or tips on this?

Thank you in advance.

Labels (2)
1 Solution

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

you can try with the below expression:

=SUM( DISTINCT
{
<
prospect = {'B', 'C'},
Rolling12turnover = {">=$(=vTurnover12Mon)"},
Rolling12purchasedates = {">=$(=vPurchasedates12Mon)"},

Clientnr = {"=sum(
{<
inv_date={[>=$(=date('$(vFilterdate)'))]}
>}
>
*
<
prospect = {'B', 'C'},
Rolling12turnover = {">=$(=vTurnover12Mon)"},
Rolling12purchasedates = {">=$(=vPurchasedates12Mon)"},

Clientnr = {"=sum(
{<
inv_datum={[>=$(=date('$(vFilterdate)'))]}
>}
turnover)>=$(=$(vturnoverSFilter))"}
>
}
flag_check )

 

I hope it helps.

View solution in original post

2 Replies
agigliotti
Partner - Champion
Partner - Champion

you can try with the below expression:

=SUM( DISTINCT
{
<
prospect = {'B', 'C'},
Rolling12turnover = {">=$(=vTurnover12Mon)"},
Rolling12purchasedates = {">=$(=vPurchasedates12Mon)"},

Clientnr = {"=sum(
{<
inv_date={[>=$(=date('$(vFilterdate)'))]}
>}
>
*
<
prospect = {'B', 'C'},
Rolling12turnover = {">=$(=vTurnover12Mon)"},
Rolling12purchasedates = {">=$(=vPurchasedates12Mon)"},

Clientnr = {"=sum(
{<
inv_datum={[>=$(=date('$(vFilterdate)'))]}
>}
turnover)>=$(=$(vturnoverSFilter))"}
>
}
flag_check )

 

I hope it helps.

lprill
Partner - Contributor
Partner - Contributor
Author

Indeed this helps and did the job!  🙂

Thank you a lot!