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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors