Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
BlakeGri2093
Contributor III
Contributor III

Join by record position in Qlik Sense

Hi guys

Does Qlik Sense Script Support to join 2 table based on record position (i try to use join statement but it seem doesn't work) . Anyone has solved this issue?, thank in advanced.

This is example and the output desired

Table 1

RowA

RowB

RowC

RowD

Table 2

Row1

Row2

Row3

Row4

The output desired:

Row A    Row1

Row B    Row2

Row C    Row3

Row D    Row4

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

You can introduce a new field with row number in both the fields and join on that key like:

[Table 1]:
Load *,
	RowNo() as KEY Inline [
Field1
RowA
RowB
RowC
RowD ];

JOIN

[Table 2]:
Load *,
	RowNo() as KEY Inline [
Field2
Row1
Row2
Row3
Row4 ];
Drop Field KEY;

Capture.PNG

View solution in original post

1 Reply
tresB
Champion III
Champion III

You can introduce a new field with row number in both the fields and join on that key like:

[Table 1]:
Load *,
	RowNo() as KEY Inline [
Field1
RowA
RowB
RowC
RowD ];

JOIN

[Table 2]:
Load *,
	RowNo() as KEY Inline [
Field2
Row1
Row2
Row3
Row4 ];
Drop Field KEY;

Capture.PNG