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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
georgianamha
Contributor II
Contributor II

ignore filter in KPI

Hello,

I have made the KPI for YTD using this calculation:

sum({<YEAR={"$(=max(YEAR))"},MINTHNUM= {"<=$(=max(MONTHNUM))"} > }line_amount)

Obviously if i put any filter (year or month or product or manufacturer etc) the value is changing

i read that if i add {1} the KPI will ignore all filters, but in my case is not working.

If i make it like this sum( {1} {<YEAR={"$(=max(YEAR))"},MINTHNUM= {"<=$(=max(MONTHNUM))"} > }line_amount) is not change

and if i add it at the end, like this sum({<YEAR={"$(=max(YEAR))"},MINTHNUM= {"<=$(=max(MONTHNUM))"} > }{1} line_amount)

all filters are ignored but the value is changed from 3.7 M to 24.7 M and i noticed that this value is the total for all years

Do you have any advice? 🙂

 

Thank you for support!

Labels (1)
3 Replies
Or
MVP
MVP

Your inner max() functions in the set analysis are also looking at selections, so you'll need to tell those to ignore selections as well, i.e. max({1}Year) or max(all Year)

sidhiq91
Specialist II
Specialist II

Try adding 1 without the {}. Just before set modifier. See if that helps

georgianamha
Contributor II
Contributor II
Author

Thank you! Worked 🙂