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: 
Not applicable

How to disregarding any selection on expression?

Hello,

how do I not consider selections month and year in the formula below, using Set Analysis? Thank you.

=num(if( Aggr(Rank(Sum(Value)),Year,Month) <= 3, sum(Value)) / 100,'#.##0M')

3 Replies
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

it is possible to disregard selections made by user with this syntax:

=num(if(Aggr(Sum(Value)), Year, Month) <= 3, sum({$<Month=, Year=>} Value)) / 100, '#,##0M')

Month= and Year = inside Set analysis will cause that selections on those fields will be ignored.

As a note, it is possible that this set analysis also has to be included in the if statement.

Regards

Not applicable
Author

I tried this before, and still consider the Month dimension selection....

jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Have you tried putting set analysis also in the if Statement?

=num(if(Aggr(Sum({$<Month=, Year=>} Value)), Year, Month) <= 3, sum({$<Month=, Year=>} Value)) / 100, '#,##0M')