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

Seperate a field/column in a table

Hello,

i need some help. My problem is:

i have a field/colum names TEST that contains for example:

A 1s

A 1r

A  12s

A 12r

I want now a table, that contains A, 1 or 12, r/s as columns.

I tried left(TEST,1) as column1,

mid(TEST,3,1) as column2,

right(TEST,1) as column3.

My problem is now, that the value 12 in column is showed as 1 because of mid(TEST,3,1).

How can i change the function to show the value 12?

Thank you for your help!

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     For that use this expression

          mid(TEST,3,len(TEST)-3)

Celambarasan

View solution in original post

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     For that use this expression

          mid(TEST,3,len(TEST)-3)

Celambarasan

Not applicable
Author

Thank you very much! It works!