Forum Discussion
wskallmeyer
Advocate II
9 years agoHow to load m file from a text file
I am currently using Power BI Desktop without the publishing service. Basically just sharing pbix files. I would like to pull the M code out my pbix file so it is one less thing the end user can ch...
- 9 years ago
Use the following code:
let Source = Text.FromBinary(File.Contents("C:\Mcode.txt")), Expression = Expression.Evaluate(Source, #shared) in Expression
wskallmeyer
Advocate II
9 years agoSorry should have included this part as well. Is this correct?
let
Source = Text.FromBinary(File.Contents("C:\Mcode.txt"))
in
dkay84_PowerBI
Microsoft Employee
9 years agoUse the following code:
let
Source = Text.FromBinary(File.Contents("C:\Mcode.txt")),
Expression = Expression.Evaluate(Source, #shared)
in
Expression