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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.