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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
amien
Helper V
Helper V

Only want to load specific records from into a second dataframe, based on the first dataframe

I have a week-dataframe which contains a list of specfic weeks.

But now i want to load the fact table into a fact-dataframe, but only for the weeks that do exist in the week-dataframe

Do can i do this?

 

Thanks in advanced

1 ACCEPTED SOLUTION
spencer_sa
Super User
Super User

Are you trying to use a Copy Data activity to do this or using a Notebook?
I'm not sure you can do much table filtering in a Copy Data activity.
If you are using a notebook, then you can simply do this using an inner join, but selecting only the columns from the first table.  (The equivalent of a 'WHERE IN' clause.)

result = tableA.join(tableB, tableA.col1 == tableB.col99, "inner") \
               .select(tableA.col1, tableA.col2, tableA.col3)

View solution in original post

1 REPLY 1
spencer_sa
Super User
Super User

Are you trying to use a Copy Data activity to do this or using a Notebook?
I'm not sure you can do much table filtering in a Copy Data activity.
If you are using a notebook, then you can simply do this using an inner join, but selecting only the columns from the first table.  (The equivalent of a 'WHERE IN' clause.)

result = tableA.join(tableB, tableA.col1 == tableB.col99, "inner") \
               .select(tableA.col1, tableA.col2, tableA.col3)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors