Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi guys,
I'd want to parameterize the file path with language M but I can't.
For example:
I have a file Excel in a folder C:\PBI\WORK so in editor I have
let
Origine = Excel.Workbook(File.Contents("C:\PBI\WORK\File_01.xlsx"), null, true),
data_Table = Origine{[Item="data",Kind="Table"]}[Data]
in
data_Table
After, I have created a parameter
Name: PathFile
Type: Text
Current value: C:\PBI\WORK
So, how can I change language M to set the parameter?
Thank you all
Solved! Go to Solution.
@giuliapiazza94 , Create an M Parameter, say path (under manage parameter, create new)
let
Origine = Excel.Workbook(File.Contents(path &"\File_01.xlsx"), null, true),
data_Table = Origine{[Item="data",Kind="Table"]}[Data]
in
data_Table
@giuliapiazza94 , Create an M Parameter, say path (under manage parameter, create new)
let
Origine = Excel.Workbook(File.Contents(path &"\File_01.xlsx"), null, true),
data_Table = Origine{[Item="data",Kind="Table"]}[Data]
in
data_Table
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 132 | |
| 102 | |
| 59 | |
| 39 | |
| 31 |