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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
lcarlone
New Member

Consume Power Bi ML model from a .net C# application

Hello! I just started to explore Machine Learning functionality in Power Bi.

I managed to create a premium workspace, load a dataflow with the training data from my Database and train the model.

Now, inside Power Bi web app, I can Apply the ML model to new data.

I can't figure out how I can use the model from a client application (in particular from a .NET C# web application). Is there any endpoint URL where I can call a web service or something similar?

 

Thank you!

 

Luigi

1 ACCEPTED SOLUTION

Understood. Please note that Power BI is designed as a sink, not as a source. If your modeling result would be stored in a calculated column, or if it would be accessible via a measure then you could access it via XMLA endpoint queries. But most likely you use a visual to get the result and I am not sure if the visual Query exposes that data.

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

What prevents you from running your own ML model on your data?

This is my scenario. I developed a web application with it's database.

I loaded my data from application DB into Power Bi and trained a model to predict one of the fields of my DB.

Now I would like to use the model inside my application so that, when the application user adds a new record I can give him the predicted value based on the variables of the new data record.

I was hoping to be able to call a webservice from my code, passing the new record to the model and getting back the predicted value...or something like that!

Understood. Please note that Power BI is designed as a sink, not as a source. If your modeling result would be stored in a calculated column, or if it would be accessible via a measure then you could access it via XMLA endpoint queries. But most likely you use a visual to get the result and I am not sure if the visual Query exposes that data.

Ok, maybe this is not the right tool to achieve my goal.

Thank you

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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