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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
davidoz
Frequent Visitor

Filter query based on another table with large dataset

Hi all

 

I have two tables in my dataset. The first, called VW_FIRE_IDEAL_TICKETS contains a list of documents where the field SEQID is a unique identifier. This table has about 25 columns, and currently 16,000 records (growing at approx 20 per day)

 

davidoz_0-1657743157887.png

 

The second table, FIRE_FIELD_TICKET_CHARGES_ONLY has around 3.5m rows, most of which are completely useless because they are either old, or relate to another division of our company. The only rows I want in this table is where the SEQID matches back to the other table. This should pull approx 200,000 rows, which is also growing at around 100-300 per day. 

 

davidoz_1-1657743362771.png

 

Does anybody know how to filter this table efficiently? Most of the solutions I've found online have suggested merging tables or looking up to a master list. I haven't found a way to do this because of the large dataset. They have either resulted in errors or have just sent powerquery into a seemingly endless loop. As a starting point I've tried filtering the date which cut out millions of rows, but I'm still left with around 450,000 of which I know the majority are not relevant.

 

Any help would be appreciated! Thank you!

 

1 REPLY 1
PC2790
Community Champion
Community Champion

Hey @davidoz ,

 

You can try -"Table.Contains"

Refer - Filter Table by Another in Power Query (aaronjgrossman.com)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors