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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

hi all.. question regarding pick function in qlikview

i have one expression named Build_Burn in pivot table like

PICK($(sel),

$(var1),

$(var2),

$(var3),

$(var4),

$(var5)

)

and in this expression i have  6 variables like $(sel), $(var1),$(var2),$(var3),$(var4),$(var5)

out of these 6 expressions $(var1),$(var2),$(var3),$(var4),$(var5) are variables storing some expressions and $(sel) is a variable for selecting the remaining 5 expressions

if i give $(sel) value is 1 in variable overview.. then i can't get all 5 expressions values in pivot table right?

but i need all 5 expressions values  like


Requirement                                                                   


                      Build_Burn

Actual_ship        12

Actual_cons        23

Remain_ship      34

Remain_cons      64

Running_ship      34






if i give $(sel) is 1 in variable overview, only first expression is evaluating  like below ...... but i want all expressions should be evaluated.


                      Build_Burn

Actual_ship        12

Actual_cons       12

Remain_ship       12

Remain_cons      12

Running_ship      12




6 Replies
Not applicable
Author

plsss solve my problem...

marcus_sommer

A variable could have only one value at the same time and therefore if $(sel) = 1 only the first expression will be returned. From your description it's not quite clear what do you want how and where to do but maybe rowno() is more suitable in your case like:

PICK(rowno(),

$(var1),

$(var2),

$(var3),

$(var4),

$(var5)

)

- Marcus

Not applicable
Author

hi Marcus.. thnq so much for your reply...

i want to show that expression in pivot table...but i need to show all expressions... is there any solution for that?

could u plz help me

marcus_sommer

Probably you need to use for each variable a single expression - maybe without the use of variables which should be simplify things and not to make it more complicated.

- Marcus

MarcoWedel

please provide a sample application to demonstrate solutions with.

thanks

regards

Marco

Not applicable
Author

thnks for ur reply... rowno() is working...