Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a Power Bi template that I send out to different parts of our organization. Depending on which department is viewing the report, the template can specify a certain number (up to 5) of servers in the report. I have the report written using parameters where the user creating the report can easily input the server names.
So if user A has 5 servers they want to query, they input 5 server names, and there are a few tables where I append all of the results into the report.
If user B only have 4 servers, they input 4 server names and the same thing occurs. However, I put in an If statement basically saying if parameter for server 5 = null, then the table will be null and we ignore it during the appending of data.
The report itself works fine in Desktop but I cannot get them to refresh because of the refresh error above in the title. I suspect the Source = null for any blank parameters might be the issue but would need to get confirmation from someone. If that is indeed the case, any workarounds?
Solved! Go to Solution.
Digging a little deeper into this, if I remove the blank parameters and their associated queries, it seems the refresh is enabled again. Kind of puts a damper on the usefulness of the templates, hoping there is a way around this.
Hi @GilbertQ
I think we're getting close but when I changed it to N/A, a new datasource appears. The gateway is no longer gives me the error but is now looking for credentials for a bogus datasource named "N/A".
@GilbertQSo you're saying I should create a parameter for the data source as well? Or maybe I'm missing something.
I see what you mean, I guess I could give that a shot. My only issue is coming up with an empty datasource. We query everything from a MySQL database (2 databases to be exact).
@GilbertQThat did it! Thanks again buddy. Definitely an interesting solution but I see no reason why this won't work for our other offices in the future.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.