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.
Is there a way to run an executable, receive its standard output and use it as a data source?
Following @Greg_Deckler advice here is an R based solution.
let
dummyInput = #table(null,{{1}}),
RScript = R.Execute("output <- dataset#(lf)output$system <- system2(""whoami"", stdout=TRUE)",[dataset=dummyInput ]),
output = RScript{[Name="output"]}[Value]
in
output
Nice. Have you tried that in conjunction with an on-premises gateway? Just curious if it would work. Obviously, the cloud gateway is not going to support any random executable but would be interesting if the on-premises gateways did.
I would have a look at Power Query's accessing data functions and R.
https://msdn.microsoft.com/en-us/library/mt296615.aspx
I have to believe that this would not be supported by any gateway however. Seems like an awfully big potential security risk.
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 |
---|---|
8 | |
6 | |
6 | |
6 | |
5 |
User | Count |
---|---|
9 | |
9 | |
8 | |
6 | |
6 |