Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Left join question

HI guys,

I am doing the following join which works perfectly..

left join (SalesLines)

Load TxnID, TxnDate  Resident Sales;

It joins on TxnID.

Now i need to take all fields of Sales in Sales Lines so I wish to do something like this

left join (SalesLines)

Load TxnID, *  Resident Sales;

and it does not work.

Any suggestion?

11 Replies
iktrayanov
Creator III
Creator III

Try

left join (SalesLines)

Load  *  Resident Sales;

Not applicable
Author

I tried that but it did not work...it did not bring any data to SalesLines.

Not applicable
Author

Hi,

Have you checked there's not a single field name apart from TxnID and TxnDate that is common to both tables? That's usually the trap with this kind of "massive join".

You can also try:

join (SalesLines)

Load *  Resident Sales

where exists (TxnID)

;

The result may show what causes the issue.

Hope it helps.

Not applicable
Author

It gives error saying that "exists" field does not exist.

Not applicable
Author

Sorry, I had forgotten the parenthesis. Edited in previous post.

Where exists (TxnID)

Have you checked there's no other field named the same way between the 2 tables?

MK_QSL
MVP
MVP

Let us know the exact fields of both tables.... Hope you are not applying Where Exist in SQL Select load.

Not applicable
Author

it does not give any error but it did not any data from sales to salesline either.

Not applicable
Author

I am doing this

left join (SalesLines)

  Load *  Resident Sales

  where exists (TxnID);

Not applicable
Author

I am doing this.

left join (SalesLines)

  Load *  Resident Sales

  where exists (TxnID);