Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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