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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Indirect Set Analysis question

Could someone please help me to understand why the first expression returns cumulative figures, whilst the second does not (only the exclusion parameter has been removed).

Count(DISTINCT{$<CCMonthID = {"<=$(=Max(CCMonthID))"},CCYear=,CCQuarter =,CCMonth = ,[CustomerID]=P({<[C delete label]={''}>  +  <DeleteMonthID = {">$(=Max(CCMonthID))"}>}),[ CustomerID]=E({<Addr={''}> * <[PostCode]={''}>})>}[ CustomerID])

Count(DISTINCT{$<CCMonthID = {"<=$(=Max(CCMonthID))"},CCYear=,CCQuarter =,CCMonth = ,[CustomerID]=P({<[C delete label]={''}>  +  <DeleteMonthID = {">$(=Max(CCMonthID))"}>})[ CustomerID])

Thank you.

2 Replies
MK_QSL
MVP
MVP

Difficult to answer without looking your sample data.

Not applicable
Author

You may be sure, that set of rows in first expression is not less than in 2'nd expression, because E() forces rows with Addr and PostCode = ' '. Those rows are not present (because they are excluded) in 2'nd expression.

1)

<DeleteMonthID = {">$(=Max(CCMonthID))"}>}),[ CustomerID]=E({<Addr={''}> * <[PostCode]={''}>})>

2)

<DeleteMonthID = {">$(=Max(CCMonthID))"}>



regards

Darek