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
Anonymous
Not applicable

Deploy dataset and chart by script/sdk

Hi All,

as posted here, Re: Create streaming dataset from powershell scrip... - Microsoft Power BI Community, I am trying to deploy a dataset from script. On top of it, i would need to add the Charts programmatically. 

My idea would be to design the charts with Power Bi Deskop, using same workspace/datasetdeployed by the script, export to pbix and republish it, on a different account,  after that the script has created the same env. 

 

Basically:

- run script to build workspace/dataset

- publish a pbix 

 

Finally:
Is this a correct design/plan?

 

Thank you very much in advance
Marco

3 REPLIES 3
omnepresent
New Member

For model/Train.py file  

Import os

from flask import Flask, jsonify, request

from flask_restful import Api, Resource

from model.Train import train_model

from sklearn.externals import joblib

 

app = Flask(__name__)

api = Api(app)

ravi_ray_2022
Regular Visitor

For model/Train.py file  

Import os

from flask import Flask, jsonify, request

from flask_restful import Api, Resource

from model.Train import train_model

from sklearn.externals import joblib

 

app = Flask(__name__)

api = Api(app)

v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please refer to the following link, hope it can help you.

https://docs.microsoft.com/power-bi/create-reports/desktop-r-visuals 

https://docs.microsoft.com/power-bi/connect-data/desktop-r-scripts 

 

Best Regards,

Community Support Team _Charlotte

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

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