Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
isa2003
Frequent Visitor

Filtering in Power Query

I have established a one-to-many relationship between two tables - I & II.

 

Based on this relationship, I would like to filter table II (many) based on the Id column in table I (one). I would like to set up this filter in Power Query itself to limit the number of records being imported into Power BI from the data source.

 

I would appreciate guidance to accomplish this. Thanks in advance.

3 REPLIES 3
lbendlin
Super User
Super User

There are no relationships between queries in Power Query.  If you really must, use Merge functions.  But it is far better to load the data into Power BI and let the data model do the work for you.

Thanks Ibendlin.

Is there a way to reduce the number of records being imported into Power BI by matching a field in a large table with a field in another table.

 

I am importing two tables into PBI. One is Sales (records < 400k) another is Sales Product (records > 850k). Since the analysis relates to a specific period of time, I have used a date filter in Power Query to reduce the number of Sales records being imported to < 200k. I would like to use the Id column in the Sales table to identify and import only the matching records from Sales Product into PBI.

 

I have multiple other tables as well so am trying to limit the amount of data to what I actually need for the analysis without slowing down PBI.

 

I appreciate your guidance. Thanks in advance.

You would need to do the pre filtering in the upstream system. But is it really necessary? Don't limit your options if you don't have to.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.