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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
nbrandborg
Helper II
Helper II

Transform data with Python after import from SQL server

Hi all,

I'm retrieving data from an SQL server for my Power BI Dashboard, but I have the need of transforming the import the SQL server gets me to something more useful for the display of the data. Is it possible to apply a python script to an already-imported SQL dataset?

Kind regards
Nichlas

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@nbrandborg , I can suggest to you the way to test, I have not tried that. Refer to my video where I have shown how to bring data using python. bring the SQL server data using Python and then do data transformation, before you return the dataset.

 

https://www.youtube.com/watch?v=5D0BkNsu5CM

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@nbrandborg , I can suggest to you the way to test, I have not tried that. Refer to my video where I have shown how to bring data using python. bring the SQL server data using Python and then do data transformation, before you return the dataset.

 

https://www.youtube.com/watch?v=5D0BkNsu5CM

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak , thank you for refering to your video. I managed to pack the "SQL" import into the Python script, so it did it all together. Thank you for your help!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.