Skip to main content
Microsoft Idea

Power BI

Needs Votes

Create user functions

Vote (48) Share
Eugene Roh's profile image

Eugene Roh on 19 May 2016 02:03:21

"Users should be able to make their own functions and codes and post them on the community so that everyone can share the functions and codes."

Basically, there are sort of functions/codes embedded in Power BI.

However, those are just for numerical, literal(arranging text..etc) rearranging. For making Power BI deal with big data, there should be custom function. It is like custom visuals, we already have.

For example, sometimes we need a function to convert zipcode column to longitude / latitude column.
Or we will need a function inferring the capital city from given City/Country columns. It is not embedded. It should be realized through Custom(user) function.

Users can find the specific functions they want on the community board and import it to their Power BI then use it.

Comments (3)
Eugene Roh's profile image Profile Picture

Kieran Leigh on 20 Sep 2022 12:23:39

RE: Create user functions

Note there's an Idea for custom functions in DAX: Microsoft Idea (powerbi.com)It doesn't cover the shared user board aspect mentioned in this Idea. However, getting custom functions in general added to DAX (M already has them) is the first step before they are shared.There's also an Idea for a user function repository: Microsoft Idea (powerbi.com)Having a user repository that can store DAX and M functions may also be a good first step to offering this functionality.

Eugene Roh's profile image Profile Picture

Mike Allen on 05 Jul 2020 23:23:54

RE: Create user functions

I think this would be good for Power Query and DAX. Getting Latitude and Longitude would be Power Query. Calls to AI could be easier if web calls could be encapsulated in a function and made available in a library, maybe AI calls from DAX

Eugene Roh's profile image Profile Picture

Dusan Roknic on 05 Jul 2020 23:00:49

RE: Create user functions

Power BI desktop should be able to automatically download each function that is explicitly mentioned in someone's code. For example if I type:
Variable = OnLineDepository:SomeFunction(x,y), PBI would automatically download that function from OnLineDepository and it will be added to my PBI file.