Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Vinod
Creator
Creator

How to Map each value with other Values

Hi all

Source Table:

  

REG NOVALUE
A120171103-E0023-0
20171110-E0023-0
B120161125-E0034-0
20171130-30022-0
C120170717-C0036-0
20180226-E0052-0
D120160510-E0049-0
20160519-C0043-0
20160527-E0056-0
E120170330-E0059-0
20170824-A0018-0
20170922-30011-0
20171025-E0039-0

Above I have created one table and in that tables i want to Map the REG NO with each value of the VALUE column. Means  I want output like below mentioned table.        

  

REG  NOVALUE
A120171103-E0023-0
A120171110-E0023-0
B120161125-E0034-0
B120171130-30022-0
C120160510-E0049-0
C120160519-C0043-0
C120160527-E0056-0
D120160510-E0049-0
D120160519-C0043-0
D120160527-E0056-0
E120170330-E0059-0
E120170824-A0018-0
E120170922-30011-0
E120171025-E0039-0

Please anyone reply     

          

Regards,

Vinod              

32 Replies
balabhaskarqlik

Use SubField(), to split the data based on delimiter.

Region:

Load

[Reg No],

Value

from Region.csv;

NoConcatenate

Temp:

Load

    Subfield([Reg No],' ') as [Reg No],

    Value

Resident Region;

Drop table Region;

vishsaggi
Champion III
Champion III

‌canyou share your excel file if possible pls to look into. Using advanced tab you can attch the file.

Vinod
Creator
Creator
Author

Sorry sir, I am unable to find attaching link here.

vishsaggi
Champion III
Champion III

You can upload your excel file by clicking on reply to one of my messages then on right top corner you can see use advanced editor like below:

Capture.PNG

Then once you click on that a new page will open then you can see attach icon on bottom right corner. like below:

Capture1.PNG

Vinod
Creator
Creator
Author

Screen.PNG

In my screen it is not showing. Sir.

Anil_Babu_Samineni

Try to share excel file? Whether data store in cell or row?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
pooja_prabhu_n
Creator III
Creator III

Hi,

can you share sample data?

You can share your excel file using Advanced editor.

z.PNG

tamilarasu
Champion
Champion

Hi Vinod,

I believe that you know how to load the data from excel to QlikView. If so, try this,

Data:

LOAD

[REG NO],

SubField(VALUE, CHR(10)) as VALUE

From Excel;

Here, Excel is your file path.

Capture.PNG

thannila
Creator
Creator

Try this below code:

Load

"REG NO",

SUBFIELD(replace(VALUE,left(purgechar(VALUE,'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-'),1),','),',') AS RESULT

RESIDENT Table;

Vinod
Creator
Creator
Author

Hi Tamil Arasu sir, It's working.

Thank you.