Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Check 6th Digit in column

I have a column ID in my data set, I need to check if the 6th digit is “6” then I need to mention the number as territory1 otherwise it’s Territory2.


E.g. 4587144 is Territory2 and 4125761 is Territory1

2 Replies
Chanty4u
MVP
MVP

try this am not sure

match:

LOAD * INLINE [

    data

     4587144

    4125761

];

LOAD *,

pick(Right(data, '6'), 'ter', 'ter2')

Resident match;

Not applicable
Author

Not working