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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shalini-ms
Employee
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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors