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
arkiboys2
Helper IV
Helper IV

fabric datawarehouse

hello,

It looks like it is not possible to create keys or index on a table in the warehouse.

is this right?

the messsage says: primary key or unique keyword is not supported in the create table statement in this edition of sql server.

and not sure if my fabric warehouse should be upgraded? 

current version: 12.0.2000.8 oct 22 2024

thanks

1 ACCEPTED SOLUTION

You could use row_number or hashing your rows to get unique values for every row.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, @arkiboys2 

Thanks for FabianSchut‘s reply. As he said, currently Warehouse doesn't support the creation of unique indexes and there are some limitations for primary keys, you can try his method for your data and if it doesn't work, it's recommended to 
submit an idea for here and the product team will take note of such a need.

Related Link: New tab (powerbi.com)

Tables in data warehousing - Microsoft Fabric | Microsoft Learn

vyaningymsft_0-1730443924154.png

Best Regards,
Yang

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

FabianSchut
Super User
Super User

Hi, it is true that it is not possible to create keys or index on a table in the warehouse. Here is the documentation that mentions that limitation: https://learn.microsoft.com/en-us/fabric/data-warehouse/tables#limitations

is there a workaround?

You could use row_number or hashing your rows to get unique values for every row.

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.