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
Taurus
Frequent Visitor

Column of type "Function.Type" in Enter Data functionality

  Hi all!

 

  I'm about to create custom table using Enter Data with this structure:

 

RestaurantName  | External_ID  |  API_FUNC_PROCESS

 

  First two fields are textual, but the last one must be of type function which I'm going to use in M Function.Invoke call.

  I can add custom column like this code:

 

= Table.AddColumn(Source, "API_FUNC_PROCESS", each #"Execute External API CALL For Restaurant XXXX", Function.Type)

 

But the code adds the same function for all rows in my custom entered table.

 

The question is: How to manually enter value of type function (or Function.Type) OR how to manually enter, for example, function name and at the next step transform it to Function.Type type?

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Taurus 

Would you like the new added column to be dynamic with different input?

If so, you could try parameter, references are as below:

Use parameter in Power BI

Create dynamic parameter

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

No, it is bad idea, I need to use different functions to process different corporation/departments using api call in Web.Contents, othewise PBI Service will not allow to schedule normally if url is being dymanic.

Taurus
Frequent Visitor

I know how to execute function by its name using Expression.Evaluate:

 

Expression.Evaluate("Function.Invoke(" & func_process_name & ", {""corporation/departments""})", #shared)

 

but I want to implement this in a more elegant way.

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.

Top Kudoed Authors