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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Urgent Help needed for list box

Hi All,

I have loaded two fields from qvd i.e., Brand and Short_desc. If Brand is null or space then it is renamed as 'Unknown' but for 'Unknown' Brand there is no Short_desc.

IF (len(Brand)<=11,Brand,mid(Brand,11)) as Brand_TXTSH

Here problem is why Brand_TXTSH is not having value 'Unknown'?

In a list box i need to display Brand_TXTSH&'-'&Short_Desc.

BrandShort description_TXTSHBrand_TXTSH
CA001MGS060206001Bystolic0206001
FI001Forest IrelandFI001
FI001MGS10CELEXACelexaCELEXA
FI001MGS99OTHDIRECOther DirectOTHDIREC
FI001MGS060206001Bystolic0206001
FI001MGS090210001Teflaro0210001
FI001MGS131001001Namenda1001001
FI001MGS210907003Savella0907003
Unknown

Pl help..

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

You may try the following:

IF (len(Trim(Brand))<=11,Brand,mid(Brand,11)) as Brand_TXTSH

View solution in original post

2 Replies
sbaldwin
Partner - Creator III
Partner - Creator III

Hi without seeing the load script i couldnt say for should but looking at what you have done, the Brand field in the QVD you are renaming while loading but in the if statement above you are evaluating the source Brand field in the qvd (which is blank!), either apply the condition to the source field or do a preceeding load on the "amended" Brand field.

Thanks

Steve

nagaiank
Specialist III
Specialist III

You may try the following:

IF (len(Trim(Brand))<=11,Brand,mid(Brand,11)) as Brand_TXTSH