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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
zagzebski
Creator
Creator

Set Analysis including all but selected field

(1) What function do I use in an expression to get the total of everything EXCEPT the selected field?

For instance if I simply wanted to sum revenue but for all clients except the one I have selected what is the set analysis for that?

(2) Similarily to this if  I have a client that is part of heirachy, how do I get the total of the heirachy for the client chosen?

Example Client A is part of the Auto Division, Client B is part of the Home Division, etc

When I select Client A how to I get the total revenue for the Auto Division? then if I select client B I get the total revenue of the Home Division?

Thanks in advance...

1 Solution

Accepted Solutions
Anonymous
Not applicable

Everything's possible 🙂

Try this:

sum({<Client=, Division=P(Division)>} Revenue)

View solution in original post

6 Replies
Not applicable

Hi,

Try with this:

Only({< Dim={'*'}-{$(=GetFieldSelections(Dim))} >} Dim).

See the attached.

Regards,

Ricardo

zagzebski
Creator
Creator
Author

Thanks for the assistance.

Here is what I have in my expression but nothing is coming back...

sum(Only({< [Product-Entity]={'*'}-{$(=GetFieldSelections(Product-Entity))} >} [Product-Entity]),[Revenue])

Anonymous
Not applicable

Try using E(), which means "Excluded":

sum({<Product-Entity]=E([Product-Entity])>} Revenue)

Regards,

Michael

zagzebski
Creator
Creator
Author

Thanks!

Is it possible to do this:

If  I have a client that is part of heirachy, how do I get the total of the heirachy for the client chosen?

Example Client A is part of the Auto Division, Client B is part of the Home Division, etc

When I select Client A how to I get the total revenue for the Auto Division? then if I select client B I get the total revenue of the Home Division?

Is this possible?

Anonymous
Not applicable

Everything's possible 🙂

Try this:

sum({<Client=, Division=P(Division)>} Revenue)

zagzebski
Creator
Creator
Author

Perfect - thanks Michael.