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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RobinDelage
New Member

Power BI - Create and Build DataSet Programaticaly

Hi,

 

I Would like to create new dataSet (build from the ground) but without Power BI Desktop

Those dataset are full based on SQL Server Views.

 

I would like to : 

  • Générate DataSet
  • Add DataSource
  • Change type of all colones (Decimale place, Date format, etc...)
  • Rename / change / hide columns
  • Add calculated Measures and Columns
  • Link the DataSource
  • Publish Dataset
  • etc...

 

3 REPLIES 3
luisrh
Responsive Resident
Responsive Resident

Some of the visual constructs you do on power bi you are not capable to do in the API.   Creating datasets,  updating data sources,  refreshing,  etc are all things you do in the API.  Building visuals and some of those finer points are doable in powerbi.com and powerbi desktops.

RobinDelage
New Member

Hi luisrh,

 

Thank you for the answer,

So i can do anything i do for dataset in Power BI Desktop but with the API ?

Or is there any feature that are not available ?

luisrh
Responsive Resident
Responsive Resident

If you want to do this in power BI service (Powerbi.com) then you need to leverage the API -  Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Learn  to do that. 

If you are using PBI RS, there is also an API but it doesn't have all the capabilities of the service API - 

PBIRS | 2.0 | microsoft-rs | SwaggerHub

 

good luck.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.