Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredJoin 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
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
Solved! Go to Solution.
You could use row_number or hashing your rows to get unique values for every row.
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
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
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
13 | |
4 | |
3 | |
3 | |
3 |
User | Count |
---|---|
8 | |
7 | |
6 | |
6 | |
5 |