Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Change datasource dynamically for published report that uses oracle database

Hi,

We have published a report(rdl) into apps.powerbi. We are using oracle database to fetch the data. We have multiple environments(UAT, SIT and production), for each of this environment we have created a data source in the on-premises gateway installed. We would like to know if there is an option to change the datasource in the published report. Please note that we are using Oracle database and the solutions given was for SQL server. It would be really greateful if someone can provide a solution on how we can switch the database either during runtime or before deploying the RDL file without changing it manually everytime.

Thanks in advance.

2 REPLIES 2
Anonymous
Not applicable

Thank you for the reply. I had already checked the solution given unfortunately it doesnt help us since we are developing paginated reports and the reports are published as .rdl files. Here, we dont have the options mentioned in the link that you have provided.

Please find the task that we are trying to achieve in detail below:

1. Develop a paginated report and save the .rdl file in the azure repository.

2. Publish the rdl file from the azure repository using power bi actionn publish through a pipeline into a workspace.

3. In the worksapace we have an on-premises gateway. In this gateway we have data source connecting to our development, UAT and SIT databases all these are Oracle database.

4. When the RDLs are being developed we create a datasource and all datasets are being mapped to this datasource, the gateway will have a datasource with the same name created and the report will fetch the data from the particular data source for example RDL created and deployed with development database will connect to this database and fetch the data from development database.

5. If we need to fetch data from the UAT database we need to modify the RDL file manually using power bi report builder tool, create a new datasource for UAT and map the same with all the datasets and re-publish this report.

 

We are trying to come up  with a solution to avoid changing the database in the RDL file manually everytime we want to view the report from a different database. We tried updateparameters option available in the API but it didnt work and also we tried find and replace text in rdl files through the pipeline action tasks and even that didnt help us.

Request you to kindly suggest if there are any other alternate solutions for this case. Any help would be greatly appreciated.

v-zhangti
Community Support
Community Support

HI, @Anonymous 

 

You can try using query parameters to store the connection string, which you can then modify on the power bi server side.Using the Power BI Service Parameters to change co... - Microsoft Power BI Community

 

By the way, current power bi service not support do data modeling.

 

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors