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 August 31st. Request your voucher.

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
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric 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.