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: 
Ramu_i
Creator II
Creator II

Exclude the selected value and display the Total

Hi all,

I have a county information 

Here 

Country    State   Values 

IND      AP   10

IND     TS    20

IND    KA    30

IND    DL    50      in this way

Requirement:

Filters, Country and State.

Country is IND  KPI display the 110 

If select the state is   AP----110-10=100

If select the state is AP,KA ----110-10-30=70 ...

Total - selected values 

Only selected values for one KPI --- Ap is state  display -10

KA , AP ----30+10 

Here some time country info is there ,Some times country info not there in this case find the country for the state.

 

Thanks 

Ram

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

As below

 

=sum({<State=>}TOTAL <Country> Values)-sum(Values)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

As below

 

=sum({<State=>}TOTAL <Country> Values)-sum(Values)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Ramu_i
Creator II
Creator II
Author

Hi Vinieme,

Thanks for your are valuable solution.

It's working fine.

Regards,

Ram