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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
thebigwhite
Helper II
Helper II

Creation of Synthetic Keys

Good morning, 

I am creating a model where they key among the tables is a string. I am wondering if I can create a "numeric synthetic" keys from the string key field. I am wondering if a numeric keys can have a positive impact on the perfomance. 

 

Thanks in advance 

 

3 REPLIES 3
thebigwhite
Helper II
Helper II

thanks for the answer. Is there any function to create a unique synthetic key starting from a string?

A Power Query function?

What is the conversion? - just a simple data type conversion or are you trying to generate a surrogate key from fresh?

 

Also, make sure to use a star schema for the model - this will give the best performance gains.

HotChilli
Super User
Super User

Yes, it does help performance.  The reduction in storage and the performance of joins are where it helps.  Most of the time I don't bother unless every ounce has to be squeezed to get what you want .  

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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