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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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