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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Fabric Update Carousel

Fabric Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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