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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sully123
Contributor II
Contributor II

Ignore any selection in Set Analysis with AGGR SUM expression

Hi,

I am trying to create a completely static KPI box which shows the Month to Date sales using Set Analysis.

I have the following expression:

Sum( Aggr(Sum( DISTINCT  Sales), OrderNumber))

And have used the following set analysis:

Sum( Aggr(Sum( DISTINCT {1<YearMonth={"$(vMTDStart)"} >} Sales), OrderNumber))

But selections still affect the sales value shown despite the '1'.

Could you please help?

Thank you

Labels (4)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

Like this?

Sum({1} Aggr({1}Sum({1} DISTINCT {<YearMonth={"$(vMTDStart)"} >} Sales), OrderNumber))

View solution in original post

2 Replies
BrunPierre
Partner - Master II
Partner - Master II

Like this?

Sum({1} Aggr({1}Sum({1} DISTINCT {<YearMonth={"$(vMTDStart)"} >} Sales), OrderNumber))

sully123
Contributor II
Contributor II
Author

Yes!! Thank you very much