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.
We have below python script that retrieves data fro ma local Excel fine and creates a desired table in Power Query.
import pandas as pd
input_file_path = "C:/myfile.xlsx"
sheet_name = "sheet1"
df = pd.read_excel(input_file_path, sheet_name=sheet_name)
# Extract requied columns
df = df[['column1', 'column2', 'column3', 'column4']]
However, we now need to source the data from a sharepoint location.Is there a way to achieve this without having to include a username and password for the sharepoint connection in the script? Alternatively, can we use an existing table from power query as input for the script?
Running above script = Power Query > Get Data > Python Scripting
Have you considered using the standard SharePoint Folder connector? You get the Excel transform for free, and your credentials are cached.
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 |
---|---|
9 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
12 | |
11 | |
9 | |
6 | |
6 |