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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kmouneca
Frequent Visitor

How to get user inputs to call a service API?

Hi Team,

Requirement: Trying to get date parameters from the user and to pass it dynamically to the API.

I have tried the below two approaches,
1. Using DAX function
2. Using M Function


DAX -> https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters
M Func -> https://www.mssqltips.com/sqlservertip/6756/power-bi-calendar-table/

 

I have used the above articles as reference. But in both of the approaches, I got stuck while assigning "bind to parameter" as I could't see that option available for the column I've created. Not sure if I'm doing somthing wrong here.

Could someone please help me find the root cause?

 

Screenshot

kmouneca_1-1679507040040.png

 

1 REPLY 1
lbendlin
Super User
Super User

Bind to parameter only works for Direct Query data sources. Your API call is not considered a Direct Query data source  (although technically you could argue that it is one).

 

Another alternative would be to (ab)use an R or Python visual.

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.