Forum Discussion
Updating parameter in a published report
- 4 years ago
devnull wrote:
How can one make sure the uploaded report gets the changes as well?
So if you want the same parameter value in your pbix file and on the server then just set the parameter in PBI Desktop before you upload it.
devnull wrote:
This couldn't be the intended feature, can it?
I'm pretty sure this is by design. One of the common use cases for an admin to override a parameter on the server it's because the user only has access to a dev/test server or database. So they develop the report against that non-prod data, then they upload to the Report Server and the scheduled refresh pulls from the production database or server.
When you are in this scenario and the user clicks on "Edit in Power BI Desktop" the user would need to use the non-prod parameter to make any changes to the report. If the parameter values from the server were merged in then they would get access denied errors when attempting to change anything in the queries.
It can be confusing at first to see a different data when you click on Edit compared to what you see on the server, but I believe the scenario above is what they were targeting.
devnull wrote:
5. Now comes the problem:
Opening the report directly from the report server (even with Power BI Desktop app)
still uses and has the old paramater value "MyOriginalDb" instead of "MyNewDb"
(even after refresh)
If I understand correctly I believe this is actually the expected behaviour. When you override the parameter values on the server those overrides are stored on the server. If you download the PBIX file the original "design time" values for those parameters are returned. The new values are not injected into the PBIX file, rather they are used at run time when a scheduled refresh is triggered.
When you trigger a scheduled refresh on the server the data should be coming from the DatabaseName specified in the updated parameter on the server.
You are right. After a scheduled refresh, the report indeed points to the proper db, BUT:
What will be extremely confusing for the users: if they try to edit this "updated" report (with "Edit in Power BI Desktop" button), then save, and publish their changes back to the server, they publish back the old database name again.
Now i have two entities on the server:
1. one is the backsground, updated report, which is observable through the web ui
2. other is the old version opening up through the "edit in power bi dekstop" button
This couldn't be the intended feature, can it?
How can one make sure the uploaded report gets the changes as well?
Do it right when uploading?