Forum Discussion
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
- v-zhangtiCommunity 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.
- ravi_ray_2022Regular 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)
- AnonymousNot applicable
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)