Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Partner - Master

Like this?

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

View solution in original post

2 Replies
BrunPierre
Partner - Master
Partner - Master

Like this?

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

sully123
Contributor II
Contributor II
Author

Yes!! Thank you very much