Forum

Query multiple rows...
 
Notifications
Clear all

Query multiple rows based on records in other query

4 Posts
2 Users
0 Reactions
149 Views
(@filip)
Posts: 2
New Member
Topic starter
 

I have a query (Table_Budget), containing +/- 2000 rows with a ID in a column. I want to link this column to another query (Table_Jobs) which contains the same ID. But, in this other query, there are more than 400.000 rows and in Power Pivor I receive an error that I do not have enough memory.

Is it possible to query Table_Jobs where only the rows remain with the same ID as in Table_Budget?

 
Posted : 19/03/2019 4:45 am
(@catalinb)
Posts: 1937
Member Admin
 

Hi Filip,

Is that a Power Query error or a Power Pivot error? You mentioned that Power Pivot raised the error, but I guess it's just a typo.

If it's power query you meant, you can try to filter the Jobs table:

-step 1: build the ID list from Budget table:

IDList=Budget[IDColumn],

Then, add a new column in Jobs query, with this formula:

=List.PositionOfAny([IDColumn], IDList, Occurrence.First)

This column will contain -1 values for ID's not found in Budget, so you should filter these out to reduce the size of the Jobs table in Power Pivot.

 
Posted : 19/03/2019 8:35 am
(@filip)
Posts: 2
New Member
Topic starter
 

Hello,

 

I receive "error" in all record of this new column

 
Posted : 20/03/2019 4:12 am
(@catalinb)
Posts: 1937
Member Admin
 

Can we see a sample file?

 
Posted : 20/03/2019 5:39 am
Share: