Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Sxbbb
Creator III
Creator III

I want to put 'A0' as the first two in this field.

I have a field 'Lot '

in field  'Lot ' contains data :

Sxbbb_0-1679641314912.png

I want to put 'A0' as the first two in this field.

example :

A0165052171

A0172050012

.

.

.

5 Replies
maxgro
MVP
MVP

LOAD

...

'A0' & Lot as NewField,

...

 

Sxbbb
Creator III
Creator III
Author

and  I want to add '-' to count the 8th data from the left.

EX

A0165052-171

A0172050-012

BrunPierre
Partner - Master
Partner - Master

Left('A0'&Lot,8)&'-'&Mid('A0'&Lot,9) as Lot

Sxbbb
Creator III
Creator III
Author

I use this code value came out correct : Left('A0'&Lot,8)&'-'&Mid('A0'&Lot,9) as Lot

 

but want to cut the last one or the 11th one out 

EX

A0165052-17

A0172050-01

 

BrunPierre
Partner - Master
Partner - Master

Here's one option

'A0'&Left(Left(Lot,8),6)&'-'&Mid(Left(Lot,8),7)