Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

List Box Display

Hey guys,

I have a table of data in my qlikview document.  When I make a listbox for this data, the numbers: -1,0,1,3, and 4 are displayed.  If I want to make it say "Pre-Release" instead of -1 and different phrases corresponding with each number, what do I do?

I have:   

-1

0

1

3

4

I want:

Pre-Release

Staged

Released

Closed

Cancelled

Thanks for the help!

1 Solution

Accepted Solutions
Bill_Britt
Former Employee
Former Employee

Hi,

You can do something like this

LOAD * INLINE [

    Field, Field1

    -1,Pre-Release 

    0, Staged

    1, Release

    2, Closed

    3, Cancelled

];

With Field matching the original field name and Field1 being a new name

Bill


Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.

View solution in original post

6 Replies
Not applicable
Author

You can either use an IF condition or put it in the scrupt.  I recommend using an Inline or mapping load in the script.

Bill_Britt
Former Employee
Former Employee

Hi,

You can do something like this

LOAD * INLINE [

    Field, Field1

    -1,Pre-Release 

    0, Staged

    1, Release

    2, Closed

    3, Cancelled

];

With Field matching the original field name and Field1 being a new name

Bill


Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
rustyfishbones
Master II
Master II

you can create a Mapping Load from an inline table and then you use Applymap on the table that contains the numbers

2014-05-12_1905.png

Not applicable
Author

You can do it in the back-end using Mapping inline table. See attached

Hope it helps

preminqlik
Specialist II
Specialist II

hi try this

Load *,

if(match(field,-1),'Pre-released',field)                    as               NewRequiredField

from path;

Not applicable
Author

Thanks guys!