Forum Discussion

Rynke's avatar
Rynke
Regular Visitor
3 years ago
Solved

Limitation with multiple values in query load

Hi Experts,

 

I have below two connections i PQ.

I would like to limit connection 1, to only include rows that are in connection 2.

I was hoping to cut off som loading time, if I could do the limitations directly in the query load, instead of doing a merge afterwards.

I know how to do this with a single cell input from Excel, directly in the WHERE clause. But what if I want to load several items?

 

Can I make a join of below connections (I have tried without luck, but still a newbie), or is there another way?

 

PS. The items in Table1 is matching with table FSLEDG.ESVONO

 

(Connection 1: More than 10 mill. rows)

Odbc.Query("dsn=M3_PROD", "SELECT FSLEDG.ESVONO#(lf)FROM M3.M3FDBPRD.FSLEDG FSLEDG") 

 

(Connection 2: a table in Excel)

Excel.CurrentWorkbook(){[Name="Table1"]}[Content]

 

/Rynke

3 Replies