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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ajamrozek
New Member

Web API - Dynamic Url Based on Parameters

I've started a paginated report in PowerBI Report Builder and a Semantic Model in Desktop that leverages an On-Prem WebAPI. Transforming and displaying the data seemed pretty straight forward and fit my needs nicely. However, I can't get parameters to drive the URL that's published to the PowerBI Service as a Semantic Model. I need the baseUrl to be different based on env phase (dev, test, ...) along with a date range.
I've tried lots of things. Most recently I installed OnPrem Data Gateway and compiled my M query into a .mez Custom Connector. It worked for the most part, but still fails to propegate the edge parameters that defined the URL to the semantic model.

2 REPLIES 2
ajamrozek
New Member

@lbendlin I am not. I'm publishing from local designers. I'm not sure how that's relevant though. Even if the environment specific URL portion were hard-coded in phased-deployments, I still need the start and end date parameters passed through at request time. That's not happening right now.

lbendlin
Super User
Super User

Are you using deployment pipelines?  They have that parameter switching baked in.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors