Forum Discussion
Creating a generic data source for a PQ query
- 5 years ago
Please see this article. You should be able to adapt this approach.
Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD
Pat
There are several ways you could do this. One simple one would be like this. Just change the SourceToggle value away from 1 to change to prod.
let
SourceToggle = 1,
Source = if SourceToggle = 1 then Sql.Database( ) else Oracle.Database( ),
rest of query
Pat
- Anonymous5 years agoNot applicable
Hi Pat,
thanks for your reply.
I've tried your suggest in pbi desktop and it functions rightly!
On power bi service after the publishing?
I'm interesting to know other ways to solve this issue. Is there any articles about this subject?
- Anonymous5 years agoNot applicable
Hi,
I've SourceToggle as a PQ parameter, but after publishing the pbix on Power BI service I cannot edit this parameter.
How could I solve this issue? Thanks