Forum Discussion
Doubt about Power BI Rest API -gateway
- 4 years ago
Ok. No I don't believe the rest api can do that.
You'd need to look at the XLMA end point and interfacing with the tabular object model in C#.
https://powerbidevcamp.powerappsportals.com/sessions/session04/Also worth looking at tabular editor 3 if you're just trying to add a table
to an existing dataset in the service. You can create a table and paste the M code straight into it's partition.
Thanks!
As far as I know, this endpoint is used to refresh a dataset that needs to have an underlying datasource for refreshing.
The problem is not that we cannot create datasets that can be refreshed from a datasource.
The problem is that we cannot create the underlying datasource with the PowerBI REST API in the first place.
Can we import Power Query M code with the REST API? With the code, we can describe a dataset and its datasource.
Ok. No I don't believe the rest api can do that.
You'd need to look at the XLMA end point and interfacing with the tabular object model in C#.
https://powerbidevcamp.powerappsportals.com/sessions/session04/
Also worth looking at tabular editor 3 if you're just trying to add a table
to an existing dataset in the service. You can create a table and paste the M code straight into it's partition.