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: 
stabben23
Partner - Master
Partner - Master

Set expression with multiple values

I have problem to get sales when i have multiple %childs, what i want is when i select %Head i want to get all sales values from %Child. This works when i have a 1 to 1 relation between %Head and %child not when %childs are many.

This is about Items and need to know the sales from the Headitem and the childitems that belongs to the Headitem in the same Expression.

My expression: sum ({$<%Head =  {"$(=%child)"}>}Sales)

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

may be you can try something like

sum({<%Heads={"$(=concat(%Child,',')"}>}Sales)

View solution in original post

4 Replies
sushil353
Master II
Master II

can u post the sample data

stabben23
Partner - Master
Partner - Master
Author

Sushil, no Ii cant.

lironbaram
Partner - Master III
Partner - Master III

hi

may be you can try something like

sum({<%Heads={"$(=concat(%Child,',')"}>}Sales)

stabben23
Partner - Master
Partner - Master
Author

Thanks liron, smal correction with no of Brackets and reduce of " then it works perfect!

sum({$<%Head={$(=concat(%child,','))}>}Sales)