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 dateJoin the OneLake & Platform Admin teams for an ask US anything on July 16th. Join now.
in fabric dataflow, after some transformations, I have got the data.
Now I would like to save this data as csv.
How do I do this in notebook?
thanks
Solved! Go to Solution.
Hi again @arkiboys
Thanks for using Fabric Community.
Unfortunately, Fabric Dataflow (Gen2) itself doesn't have a built-in functionality to directly save the transformed data as an CSV file. However, you can achieve this by integrating Dataflow with Notebooks:
1) Give the destination as lakehouse in Dataflow Gen2 and publish the Dataflow . This will create a new table in your lakehouse.
2) Create a new notebook and run the below code:
Hope this helps. Please let me know if you have any further questions.
Adding on top of what @Anonymous stated, you can even use data pipelines to copy the data from lakehouse and save this data as csv in the sink supported by data pipeline if need be.
Any specific reason why you want to integrate notebook?
please do let me know how to save the data as .csv in the pipeline
thank you
you can use Copy activity for the same post dataflow trigger
where destination can be any sink supported by data pipelines.
In my example I have taken lakehouse only
Hi again @arkiboys
Thanks for using Fabric Community.
Unfortunately, Fabric Dataflow (Gen2) itself doesn't have a built-in functionality to directly save the transformed data as an CSV file. However, you can achieve this by integrating Dataflow with Notebooks:
1) Give the destination as lakehouse in Dataflow Gen2 and publish the Dataflow . This will create a new table in your lakehouse.
2) Create a new notebook and run the below code:
Hope this helps. Please let me know if you have any further questions.
If I understand correctly, this approach will create a folder with multiple files.
To create a single file from a Notebook, please refer to these threads:
I also think @NandanHegde's solution is a good solution which doesn't involve Notebook.
By any chance do you if the Notebook code can be updated to dynamically append the field "File_Instance" to the output name?
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 Fabric update to learn about new features.