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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
shivamkedia
Partner - Contributor II
Partner - Contributor II

like in Set Analysis

suppose I have a table having column col1 and col2.  I have 2 buttons(vButtonVariable) named  allocated and allocable

 

col1                           col2

allocated_x             1

allocable_z            2

allocated_y            3

allocable_a            4

I want an set analysis in qlik sense  to which gives sum of prefix having allocable and allocated which looks like

col1                     col2

allocated           4(1+3)

allocable           6(2+4)

I have tried        pick( $(Buttonvariable),

sum({<col1={'allocated*'}>}col2),sum({<col1={'allocated*'}>}col2))

 

 

 

1 Reply
dplr-rn
Partner - Master III
Partner - Master III

replace single quotes with double quotes. Single quotes is used for literals not search
change it to
sum({<col1={"allocated*"}>}col2)