Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Has anyone successfully written a Python Script run in Power Bi that replaces steps in Power Query to import a sharepoint spreadsheet?
I've already tried 2 different scripts
# 'dataset' holds the input data for this script
import pandas as pd
#pd.read_excel('https://orgname.sharepoint.com/teams/MyTeam/Shared Documents/General/Security/Metrics/myspreadsheet.xlsx', sheet_name=[8]) # load ws6
and
# 'dataset' holds the input data for this script
import pandas as pd
# load example
df1 = pd.read_excel('https://orgname.sharepoint.com/teams/MyTeam/Shared Documents/General/Security/Metrics/myspreadsheet.xlsx',
# get sheets 2 through 8; rows 1-2 are the headers
sheet_name=[2, 3, 4, 5, 6, 7, 8], header=[1, 2])
Solved! Go to Solution.
Looks like you need to download the file before you can open it
Looks like you need to download the file before you can open it
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 61 | |
| 42 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 116 | |
| 38 | |
| 32 | |
| 29 |