Forum Discussion
Power BI Api approach for dynamic report generation
- 4 years ago
Hi ms92ita,
Yes. You should create a dataset for each customer and then generate an embed token with the right DatasetID.
In addition, you should add the following to the config object:datasetBinding: { datasetId: "<DatasetId>" }See dynamic binding and bind datasets dynamically to a report
For, us the better approach is the shared template with the "Embedding for your organization" mode. Basically, we do not want to allow access to the database so the second approach is better and all our acesses to the API are with the app registration identity from AD (we are already using it for ARM management in Azure).
Anyway, can we create dynamically a PBIX file with all tables/relations without Power BI Desktop? This is beacuse, if we need to change table definitions, this is not easy to change multiple datasets one by one