0

I'm working with Power BI to create reports and call them from the Power BI API (through Visual Studio/C# in this case). I have a simple report that works when I call it from the API, but the problem I'm running into is the Data Source that's set in the report could change depending who runs the report. For example, if I have a different database for each of the 50 States that run my program, how do I change the Data Source for the Paginated Report to match the database for Alabama vs Arkansas via the API? Do I have to make a Data Source for each State in the report (via Power BI Report Builder) and somehow choose which one to use via the API? Or is there a way to change the connection string of the Data Source via the API? Is there something else and I'm way off?

Tim F
  • 119
  • 1
  • 8
  • Maybe you are looking for [Rebind Report In Group](https://learn.microsoft.com/en-us/rest/api/power-bi/reports/rebind-report-in-group) API – Andrey Nikolov Feb 02 '23 at 06:43

0 Answers0