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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
ilanbaruch
Specialist
Specialist

set analysis with GetFieldSelections

Hi All,

i want to create an expression with set analysis based on another field / dimension selection?

any ideas ?

tried it like this:

sum({$<Office={GetFieldSelections(OFFICE_BUDGET)}> } amount) 

Labels (1)
1 Solution

Accepted Solutions
MarcoWedel
MVP
MVP

Hi,

maybe another solution could be:

Sum({$<Office=OFFICE_BUDGET>} amount)

or

Sum({$<Office=$::OFFICE_BUDGET>} amount)

to avoid an "error in expression":

QlikCommunity_Thread_231456_Pic4.JPG

QlikCommunity_Thread_231456_Pic5.JPG

QlikCommunity_Thread_231456_Pic1.JPG

QlikCommunity_Thread_231456_Pic2.JPG

QlikCommunity_Thread_231456_Pic3.JPG

hope this helps

regards

Marco

View solution in original post

5 Replies
sunny_talwar
MVP
MVP

Try this instead:

Sum({$<Office = P(OFFICE_BUDGET)>} amount)

sunny_talwar
MVP
MVP

Or this if you really want to use GetFieldSelections

Sum({$<Office = {$(=Chr(39) & GetFieldSelections(OFFICE_BUDGET,Chr(39) & ',' & Chr(39)) & Chr(39))}>} amount)

MarcoWedel
MVP
MVP

Hi,

maybe another solution could be:

Sum({$<Office=OFFICE_BUDGET>} amount)

or

Sum({$<Office=$::OFFICE_BUDGET>} amount)

to avoid an "error in expression":

QlikCommunity_Thread_231456_Pic4.JPG

QlikCommunity_Thread_231456_Pic5.JPG

QlikCommunity_Thread_231456_Pic1.JPG

QlikCommunity_Thread_231456_Pic2.JPG

QlikCommunity_Thread_231456_Pic3.JPG

hope this helps

regards

Marco

ilanbaruch
Specialist
Specialist
Author

it helps,thank you!

Anonymous
Not applicable

Hi ilan,

     It is working fine, but what is the actual usage of $::. Thanks in advance...