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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
jashfabric
Helper II
Helper II

Fabric Data Warehouse - Creating Functions

Hey all
Need some information about the below questions:
I'm trying to create a function in Fabric Data Warehouse

  1. Is it currently possible to create user-defined functions within Fabric Data Warehouse?
  2. If functions are supported, what's the correct syntax for creating them?
  3. Are there any limitations on the supported return types for functions?

Any insights or pointers would be greatly appreciated.

 

@(v-nikhilan-msft)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jashfabric 
Thanks for using Fabric Community.
1) You can create UDF in warehouse.

 

vnikhilanmsft_0-1715931223390.png

 

 

vnikhilanmsft_1-1715931223182.png

 


But scalar functions are not yet available in Fabric. For more information please refer to this link: Link1

For Transact-SQL functions, all scalar data types supported in Azure Synapse Analytics are allowed. The rowversion / timestamp data type is not a supported type. The cursor and table nonscalar types are not allowed.
CREATE FUNCTION (Azure Synapse Analytics and Microsoft Fabric) - SQL Server | Microsoft Learn


Hope this helps. Please let us know if you have any further questions.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jashfabric 
Thanks for using Fabric Community.
1) You can create UDF in warehouse.

 

vnikhilanmsft_0-1715931223390.png

 

 

vnikhilanmsft_1-1715931223182.png

 


But scalar functions are not yet available in Fabric. For more information please refer to this link: Link1

For Transact-SQL functions, all scalar data types supported in Azure Synapse Analytics are allowed. The rowversion / timestamp data type is not a supported type. The cursor and table nonscalar types are not allowed.
CREATE FUNCTION (Azure Synapse Analytics and Microsoft Fabric) - SQL Server | Microsoft Learn


Hope this helps. Please let us know if you have any further questions.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

Check out the May 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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