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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors