Forum Discussion

lcarlone's avatar
lcarlone
New Member
4 years ago
Solved

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

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

4 Replies

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

    • lcarlone's avatar
      lcarlone
      New Member

      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!

      • lbendlin's avatar
        lbendlin
        Super User

        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.