Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Aum(Value) where Value in a field is selected

Hi Guys,

how can I make the following:

Sum ({<[Client]= {GetFieldSelections[Client}>}[Item])

I konw this is not doable within Set Analysis but anybody knows how to do it?

Thxs,

Alec

1 Solution

Accepted Solutions
er_mohit
Master II
Master II

Try this

Sum({<[Client]={"$(=[Client])"}>}[Item])                    

Hope it helps

View solution in original post

5 Replies
shree909
Partner - Specialist II
Partner - Specialist II

Hi,

create a variable  getfieldselections(client) =vclient and use this variable in the  set analysis.

The issue u will have is either u need to select the client atleast once. or else it will thow an error.

if i am wrong can u post a sample file..

Thanks

er_mohit
Master II
Master II

Try this

Sum({<[Client]={"$(=[Client])"}>}[Item])                    

Hope it helps

alec1982
Specialist II
Specialist II
Author

Hi, I havent tried yet but as a feed back it should not throw an error as I have the list box to have one value selected always.

Thxs,

Gysbert_Wassenaar

Ehm... how about sum(Item)? Any selection you make in the field Client will automatically be applied to the expression unless you explicitly overrule it with a set modifier. So sum({<Client=p(Client)>}Item) and sum({<Client={'$(=only(Client))'}>}Item) are the same as sum(Item) if you only select one client.


talk is cheap, supply exceeds demand
Not applicable

Obviously correct