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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors