Forum Discussion
Dynamically change Database Endpoint
Hi csaethre19
You could look at using this, where you could put in the SQL server database names and get that to pass through via Parameters?
Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn
- csaethre193 years agoHelper II
Thank you for the suggestion and resource. I went through this step by step and managed to set up a bound parameter for the database URL endpoint and database name to change in the M query dynamically. However, it was not successful as it breaks my visuals and says that it is unable to read beyond the end of the stream. I am using Direct Query mode and I am guessing that this kind of thing is not supported while using Direct Query.
If you have any suggestions for dynamically changing the database while using Direct Query mode that would be appreciated.
Thank you!