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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
shalini-ms
Microsoft Employee
Microsoft Employee

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 Employee
Microsoft Employee

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 Employee
Microsoft Employee

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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