Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Passing Multiple Values into Variable

i am trying to pass multiple values into variable and clear variable selection

not working

my Variable

vGabbro=DeveloperDesc

i use Expression

=(Sum({$<CargoTypeDesc={'GABBRO'},DeveloperDesc={'$(vGabbro)'}>}EstimatedQuantity))

=(Sum({$<CargoTypeDesc={'GABBRO'},DeveloperDesc={'$(= vGabbro)'}>}EstimatedQuantity))

i tried both the ways

default variable should select all developers but it is not

i miss tick help me please

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

set your variable  vGabbro to the following value including the =

=chr(39)&'ASHGHAL'&chr(39)&','&chr(39)&'RAIL'&chr(39)

your set expression should be as follows

Sum({$<CargoTypeDesc={'GABBRO'},DeveloperDesc={$(vGabbro)}>}EstimatedQuantity)

hth

Sasi

View solution in original post

21 Replies
Not applicable
Author

by default my expression not taking all developers..it saying missing max min..little bit urgent

please

Anonymous
Not applicable
Author

Hi channa,

Your var -> =Concat(DISTINCT Chr(39)&DeveloperDesc&chr(39),',')

Your Expression ->  =(Sum({$<CargoTypeDesc={'GABBRO'},DeveloperDesc={$(vGabbro)}>}ActualQuantity))

You can change all your vars with concat, to get all values selected.

Kind regards!

Not applicable
Author

Thank you Manuel,

i tried by default my dashboard not showing any data "Allocated Memory Exceeded"

i use the expression as you suggest

my gauge should show all developers by default and need clear to clear variables

i don't find much help in existing topics can you please help me with this guys..

Kushal_Chawda

You should use Concat function, try below expression without variable

(Sum({$<CargoTypeDesc={"GABBRO"},DeveloperDesc={"=Concat(DISTINCT Chr(39)&DeveloperDesc&chr(39),',')"}>}EstimatedQuantity))

Not applicable
Author

it should be simple i am missing trick ..some one must use like this..

Not applicable
Author

i need variable because i need to filter Gauge for ASHGHAL, RAIL......when click on number

Anonymous
Not applicable
Author

Hi channa:

See attached example.

Kind regards

Not applicable
Author

Thank you very much  Kushal for response

initially when user open report my expression should take all the values from variable only 

i can't use filter because i need to build similar gauges for all materials there are 10 materials

trdandamudi
Master II
Master II

I noticed that your field "ActualQuantity" is null and might be that is the reason you are not able to see any records. Once you fix it and you still have the issue can you please post the updated qlikview file.