Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
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) 

1 Solution

Accepted Solutions
MarcoWedel

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

Try this instead:

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

sunny_talwar

Or this if you really want to use GetFieldSelections

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

MarcoWedel

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...