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
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
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!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric 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