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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need to select only 4 values out out of 10 by using sey analysis

I am using this one

=sum({$<[branch]={'e'}>} [Amount])

for example I am having a field name calles branch

branch

e

r

p

w

q

v

g

j

from these i need only e r w q to be selected i am having expression for selecting one value but to select 4 values i am unable to do it please help


1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Not sure what you mean...  Are you looking for the substrings of the Account String?  If yes, try this:

sum({<[Account String]={'*2001*','*3072*','*3023*','*3034*'}>} [Money])

View solution in original post

4 Replies
Anonymous
Not applicable
Author

=sum({$<[branch]={'e','r','w','q'}>} [Amount])

Not applicable
Author

i am using it I am getting 0 as answer

sum({<[Account String]={'.2001.','.3072.','.3023.','.3034.'}>} [Money])

actually the string goes as 10.01.2001.4567

from that tha middle numbers i am selecting

Anonymous
Not applicable
Author

Not sure what you mean...  Are you looking for the substrings of the Account String?  If yes, try this:

sum({<[Account String]={'*2001*','*3072*','*3023*','*3034*'}>} [Money])

eddysanchez
Partner - Creator
Partner - Creator

Fot the selection:

sum({<[Account String]={'*.2001.*','*.3072.*','*.3023.*','*.3034.*'}>} [Money])

For All:

sum({1<[Account String]={'*.2001.*','*.3072.*','*.3023.*','*.3034.*'}>} [Money])