cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Fcoatis
Post Patron
Post Patron

PowerQuery Filter by List

Hello,

 

I need, in PowerQuery, create a step to filter a by field ( JOB) Table (CGJOBS (2) using a list already created (realocList). 

 

Fig1.PNGFig2.PNG

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Fcoatis,

You first need to convert your list to table, then use Merge Queries transformation, and select Inner Join as the join type on the two columns

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Fcoatis,

You first need to convert your list to table, then use Merge Queries transformation, and select Inner Join as the join type on the two columns

yes and no... that's not a filter by at query time but a merge. If we want to only keep 10 items out of millions of rows this method would require to first download the 10M rows to then only merge 10.

Filter by list would imply using Table.SelectRows and be able to refer a list of values.

Why didn´t I think that? Sometimes we are so determined to a specific type of solution we became blind.

 

Thanks

Anonymous
Not applicable

@Fcoatis,

Sometimes simple solution is efffective 😉

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors