Forum Discussion

edyck's avatar
edyck
Regular Visitor
2 years ago
Solved

Parameterize Semantic Model Data Source URL

Hi all,   I've got a Power BI Pipeline configured so that I can change the connection string of some SQL datasources to point to the correct environment, which works great.   Now I have a couple ...
  • edyck's avatar
    2 years ago

    It looks like there's no way to parameterize a Power BI semantic model URL for a report. What I ended up doing is resaving the pbix files as pbip projects, and then wrote a node script to dynamically change the workspace that the semantic model points to by editing `definition.pbir`. Unfortunately there is no public API for publishing Power BI projects, so I still have to manually open Power BI Desktop to publish them to the correct workspace.