Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
How do we reference multiple lakehouse within a notebook. Can anyone please help me with sample code for writing data to another lakehouse Table within the workspace.
when I try this code, it gives me error - silver_zone is not defined. but i have created a lakehouse named silver_zone
df.write.format("delta").mode("overwrite") \ .saveAsTable('silver_zone.output_table_Silver')
Thanks,
Pallavi
Solved! Go to Solution.
Hey @pallavi_r ,
I assume that both lakehouses are in the same workspace as the notebook, then this is a strange message because this is my sample code:
# the default lakehouse of the notebook
df_asimpletable.write.mode("overwrite").format("delta").saveAsTable("df_asimpletable_new")
# another lakehouse but the same workspace
df_asimpletable.write.mode("overwrite").format("delta").saveAsTable('a_new_lakehouse.df_asimpletable_newer')
And it works perfectly.
Hopefully, this helps to tackle your challenge.
Regards,
Tom
Hey @pallavi_r ,
I assume that both lakehouses are in the same workspace as the notebook, then this is a strange message because this is my sample code:
# the default lakehouse of the notebook
df_asimpletable.write.mode("overwrite").format("delta").saveAsTable("df_asimpletable_new")
# another lakehouse but the same workspace
df_asimpletable.write.mode("overwrite").format("delta").saveAsTable('a_new_lakehouse.df_asimpletable_newer')
And it works perfectly.
Hopefully, this helps to tackle your challenge.
Regards,
Tom
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
19 | |
19 | |
13 | |
12 |
User | Count |
---|---|
30 | |
21 | |
19 | |
18 | |
15 |