Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
rahulsud007
Creator
Creator

Value conversion

Hi guys, My input field is the following and

Input
IDMonth
Ak10101
AJ11111

I need output in following way. in

IDMonth
AK1
AK0
AK1
AK0
AK1
AJ1
aj1
aj1
aj1
aj1

Can anyone help me in this?

4 Replies
anbu1984
Master III
Master III

Load ID,Mid(Month,IterNo(),1) As Month While IterNo() <= Len(Month);

Load * Inline [

ID,Month

Ak,10101

AJ,11111 ];

Not applicable

Hi Anbu,

I was just browsing through the community and found out this thread. I must say the soln. proposed by you is a good way to approach it. But if i display those values in a table box it is not showing the desired output. But the actual output is shown in Table viewer preview option. What is it i am doing wrong??

its_anandrjs

Hi Sashi,

Try to load like this way i am extending anbu script and for viewing the values add Recno() function for check the values.

Temp1:

Load ID,Mid(Month,IterNo(),1) As Month While IterNo() <= Len(Month);

Load * Inline [

ID,Month

Ak,10101

AJ,11111 ];

LOAD

*,

RecNo() as Key

Resident Temp1;

DROP Table Temp1;

Check the attached also

Regards

Anand

maxgro
MVP
MVP

same question, already answered

Fieldvalue conversion