Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to split data in Table box?


Hi,

Can anyone suggest me how to split data in table box column which is shown below

WA157EN

E66NN

output should be

WA15

E6

Please can anyone help me.

Thanks.

5 Replies
Anonymous
Not applicable
Author

You should be able to sort using the left(), right() or mid() functions.  But why does one need 2 characters & the other 4 ?

Not applicable
Author

Thanks. These are the postcodes in different locations. some postcodes are YU7 L90  and some are U9 B56

will it be possible with these functions?

Anonymous
Not applicable
Author

I am guessing here do you want to chop the last 3 characters off ?

     left([PostCode],  len([PostCode])-3)

Not applicable
Author

If you always have the space in the middle of the postcode you can use

left([Postcode], ' ')

Not applicable
Author

Hi,

Yeah it is possible

Left(field, len(field)-3)

It won't possible when these two values coming form same field.

but it will possible it these two values coming from different fields using Left(field,4) and Left(field,2)

Hope this helps