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
malleswariponn
New Member

Identity property is not working (auto increment)

in fabric warehouse i am trying to create star schema which tables having surrogate key is nothing but identity property  which is not working.i have tried with rownumber also but no luck.can you please suggest are there any approaches which will replace identity property in fabric warehouse

4 REPLIES 4
olivs
Most Valuable Professional
Most Valuable Professional

Hi @malleswariponn ,

 

Is there any way you can provide the CREATE statements that you are using for your tables?

Are you using foreign key constraints? The reason I'm asking is because foreign keys can only be used when NOT ENFORCED is used.

 

You can find more information about this via the following URL: Tables in data warehousing - Microsoft Fabric | Microsoft Learn

 

Please let me know if this helps.

If not I suggest that you provide the statements of the objects than I would be more than happy to take a look.

 

Kind regards,

Olivier

NandanHegde
Super User
Super User

You can use dataflow Gen2 :

https://www.linkedin.com/pulse/overcoming-identity-column-limitations-microsoft-reza-khajavinia-oudz...

to autogenerate new values based on max aspect




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com
Anonymous
Not applicable

Hi @malleswariponn 

 

Creating an identity column in a table isn't supported in a warehouse in Microsoft Fabric currently. Instead, you'll need to use a workaround technique. The following article describes a workaround technique that generates unique identifiers in a warehouse table. Hope you would find it helpful. 

Generate unique identifiers in a warehouse table in Microsoft Fabric - Microsoft Fabric | Microsoft ...

 

Updated:

According to the messages from the following idea, the support for identity column has been added in the plan. But we haven't received definite ETA for it. Please keep using Fabric and follow the Microsoft Fabric Blog to get the latest updates. 

Microsoft Idea: Add support for identity columns in Fabric warehouses.

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

I have tried but no luck with unique identifier.can you please provide alternative solution

 

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.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 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.