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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Custom Function in Query

I Can do this task using modelling and DAX.

 

But i want it using "invoke Custom Functions".

 

Requirement is i have key column as below

 

Key

Id-1

Id-10

Id-100

 

So i want to display only number and remove "ID-" from column

 

Thanks,

Pravin

1 ACCEPTED SOLUTION
Anonymous
Not applicable

M-function that takes a table and returns a table.PNG

It works for me. You have to create a function in Power Query and then change its body accordingly.

 

Best

D

View solution in original post

40 REPLIES 40

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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