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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors