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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors