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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
jd8766
Helper II
Helper II

Surrogate Key / Business Key - which should be used in model?

Hello, just looking for advise really..

I am building an SSAS Tabular model which will link to my PBI..  the model will only contain a small chunk of data regarding sales.

The production tables themselves are structured quite well.. each with their own primary key and foreign keys to link to the appropriate dimensions. My question is, is it completely nessecary for me to build a process to add my own surrogate keys to tables that are already structured well enough to be pulled into SSAS tabular? I am thinking I could just eliminate some processing time if I go straight from source to SSAS without a pipeline inbetween which adds surrogate keys.

Would it be OK to do this... or is it not the best practice?

1 REPLY 1
amitchandak
Super User
Super User

@jd8766 ,if SSAS tabular model is working fine, then you can simply use it. If keys are already numeric no action is needed. If they are not and have a performance issue because of large data then you should think about that.

 

The best practice is to have numeric(whole number) join keys

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.