Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone,
I created a lakehouse in Fabric. I can access to the files that I uploaded via get data button. I can run my python notebooks, I can transform the data. But I can not access to these files on Power BI. So I can't automate my transform and reporting process.
I need to upload data into lakehouse, transform on Notebook(python), download transformed data into my desktop, upload it into my workspace.
When I click New Power BI Data Set a pop up comes but nothing in. That's why I'm doing all these manual steps.
Also currently can't add data which is already in my workspace into lakehouse. I'm uploading them manually from desktop.
My goal is access to my datasets, transform them on Notebook(python) and use the datasets for my PBI reports.
Thanks
Solved! Go to Solution.
I found the solution and want to share it step by step.
In Fabric - Lakehouse click on get data, upload files.
Choose your excel file.
Once you upload your excel file. You will see it on your files.
Click on top open notebook and choose new notebook.
Paste below code into your notebook.
As explained and show above, you need to change path in your workspace.
once you have update tha path, run the code.
refresh your table as below.
You should see below table on your Lakehouse.
Open Power BI Desktop. You can choose lakehouses but it gave me error at the beginning, in this case click directly on OneLake data hub on Home tab.
Choose your lake house and click connect.
Created a basic chart to see that data has been loaded into power bi.
Hi. When you create a new dataset at Fabric it only read Tables. It looks like you only have files. Think about the tables as the real lakehouse (like metastore). The files can help you build a regular lake with layers, but at the end of the day, the place to store the data model tables it's at tables.
You can just read with spark a file as frame and run the following to store it as table:
spark_frame.write.format("delta").mode("overwrite").save("Tables/[TableName]")
That will store it at tables and you will be able to pick it with a new power bi dataset.
Another thing, remember that "My Workspace" is only for you. Don't use it for things you want to use as collaboration later. We have the possibility to create workspaces for that 🙂
I hope that helps,
Happy to help!
Thanks,
I'm just running tests before I move to working space.
On the xlsx files there were already tables. I'm not sure how to create tables. I tried to coppied the code you provide me but didn't work. I made some name changes but didn't work, not sure which names should I change on the code you provided.
What are the files you want to get from PowerBi? are they a few xlsx? I thought we were talking about many files at a lake.
I have sent you an example. Of course it won't unless you change the variables.
Let's see:
spark_frame.write.format("delta").mode("overwrite").save("Tables/[TableName]")
spark_frame is a variable. It's a frame I have loaded with a file at the lake. You need to read xlsx with pyspark to get your own frame. Store it in a variable and then try the line with the name of your variable.write....
Also check that at the end it says [TableName]. You should replace that with the table name like "Sales".
If you think this spark thing is too much, we can think about other solutions. If you just want to move an excel from local to a Table at lakehouse you can use Dataflow gen2 that will be using power query only to store it at Tables so you can use it later without coding too much. I have said that because your message sounded like you manage/write notebooks.
I hope this make sense 🙂
Happy to help!
I found the solution and want to share it step by step.
In Fabric - Lakehouse click on get data, upload files.
Choose your excel file.
Once you upload your excel file. You will see it on your files.
Click on top open notebook and choose new notebook.
Paste below code into your notebook.
As explained and show above, you need to change path in your workspace.
once you have update tha path, run the code.
refresh your table as below.
You should see below table on your Lakehouse.
Open Power BI Desktop. You can choose lakehouses but it gave me error at the beginning, in this case click directly on OneLake data hub on Home tab.
Choose your lake house and click connect.
Created a basic chart to see that data has been loaded into power bi.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
57 | |
28 | |
25 | |
22 | |
21 |
User | Count |
---|---|
58 | |
45 | |
24 | |
24 | |
18 |