cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shalini-ms
Microsoft
Microsoft

Can we create dataset(from WEB/API) using Power BI REST API

Greetings,

 

Can we create a dataset from a WEB/API data source using the Power BI rest APIs?

The Data source API requires token authentication to get the data.

 

From the Power BI desktop, we are able to get this API data using the power query, want to confirm if same can be achieved from the Power bi rest APIs ( create Datasource / Push data set APIs).

 

If it is possible, can you share a sample for reference? Thanks in advance!

 

Regards,

Shalini

 

1 ACCEPTED SOLUTION
shalini-ms
Microsoft
Microsoft

Hi,

 

Thank you team, I got the required information. 

 

I hope this will help others:

 

  • We should not use Power BI rest APIs to create regular datasets, it is suitable for the Push datasets
  • Power BI rest API has a limitation of 75 columns for the push datasets
  • One should use TOM (Tabular Object Model) or XMLA to create a regular dataset to overcome the above-mentioned limitations
  • TOM/XMLA only works for Premium workspaces and only if the XMLA endpoint has write activities enabled for the capacity the workspace is assigned to.

 

https://docs.microsoft.com/en-us/analysis-services/tom/tom-pbi-datasets?view=asallproducts-allversio...

 

Best Regards,

Shalini

View solution in original post

5 REPLIES 5
shalini-ms
Microsoft
Microsoft

Hi,

 

Thank you team, I got the required information. 

 

I hope this will help others:

 

  • We should not use Power BI rest APIs to create regular datasets, it is suitable for the Push datasets
  • Power BI rest API has a limitation of 75 columns for the push datasets
  • One should use TOM (Tabular Object Model) or XMLA to create a regular dataset to overcome the above-mentioned limitations
  • TOM/XMLA only works for Premium workspaces and only if the XMLA endpoint has write activities enabled for the capacity the workspace is assigned to.

 

https://docs.microsoft.com/en-us/analysis-services/tom/tom-pbi-datasets?view=asallproducts-allversio...

 

Best Regards,

Shalini

How to use the Rest API to create a push dataset?

v-yangliu-msft
Community Support
Community Support

Hi  @shalini-ms ,

 

Regarding the Dataset in the rest api, you can only go to get or change, but not to create.

Datasets - REST API (Power BI Power BI REST APIs) | Microsoft Docs

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

The Power BI REST API is designed to interact with the Power BI Service.  You can use OAUTH2 or AAD. If your API endpoint is different then you need to use whatever auth mechanism it requires.

 

Please provide more details, documentation for the API etc.

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors