Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to set a value list as a dimensional in script

Hi friends,


Alreday  I have used the calculated dimensional  in a bar chart by using value list method

=ValueList('Occupied','Partially Occupied','Available')

and expression is  if(ValueList('Occupied','Partially Occupied','Available')='Occupied',vOccupied,if(ValueList('Occupied','Partially Occupied','Available')='Partially Occupied',vPartiallyOccupied,if(ValueList('Occupied','Partially Occupied','Available')='Available',vAvailable)))

But  i need to bring the calculated dimensional value list method  =ValueList('Occupied','Partially Occupied','Available') in script wise as a dimensional

How can I bring the value list in script wise to set as dimensional

Regards,

Vijay.M

3 Replies
avinashelite

Simple create a inline table

LOAD *

[

Dim1

Occupied

Partially Occupied

Available

];

Anonymous
Not applicable
Author

Why cant we use an inline table like

Load Status, <Your expression> as 'value' inline

[

Status

Occupied

Partially Occupied

Available

];

Anil_Babu_Samineni

Or it is easy to get

LOAD *

[

Parameters, SNO

Occupied, 1

Partially Occupied, 2

Available, 3

];

And then front-end should be

Dim as Parameters

and expression should this

if(sNO=1,vOccupied,if(SNO=2,vPartiallyOccupied,if(SNO=3,vAvailable)))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful