Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
portnerr
New Member

Power BI Get Data using Powershell

Power BI and Powershell - might be a duplicate.  I do not think I was signed in properly on the first post.

I am reasonably new to Power BI.  I am trying to invoke PowerShell from Power BI.  I do not see it as a data source in the get data list.  I am trying to use PowerShell to get data/work items from Microsoft Service Manager for metrics reporting.

I have a Powershell script the queries data from Service Manager and exports it as a comma delimited Flat file that I was able to "get data" from that file into power BI manually.

I can find no articles/information on just invoking a PowerShell from Power BI which seems like a straightforward thing to do using Microsoft products. . 🙂

Does anyone know of a "clear" reference on how to do that.

Thanks

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @portnerr ,

 

the answer is, unfortunately, quite simple - you can't invoke Powershell from inside Power BI / Power Query.

Here I started to describe a solution I'm currently building:

The Power BI Service Admin - mapping the hive - Mincing Data - Gain Insight from Data (minceddata.in...

An essential part of this solution is also Powershell, but it is not invoked by Power BI.

For this reason, you have to re-think your solution, create data using Powershell, and then use Power BI to pick-up the data.

 

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
Cibersmurf
Regular Visitor

NOT TRUE.... You can run powershell inside PowerQuery Using R/Frames and pull data directly into powerbi.
https://tinylizard.com/using-powershell-data-source-power-bi/

TomMartens
Super User
Super User

Hey @portnerr ,

 

the answer is, unfortunately, quite simple - you can't invoke Powershell from inside Power BI / Power Query.

Here I started to describe a solution I'm currently building:

The Power BI Service Admin - mapping the hive - Mincing Data - Gain Insight from Data (minceddata.in...

An essential part of this solution is also Powershell, but it is not invoked by Power BI.

For this reason, you have to re-think your solution, create data using Powershell, and then use Power BI to pick-up the data.

 

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thanks Tom!  Not the answer I wanted, but it is what it is.  I did think about using 2 steps.  Run the script, import the data, but wanted it to be one process.  Oh well.  Thanks again.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.