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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
mmace1
Impactful Individual
Impactful Individual

Replace GUID keys with Surrogate Keys in Data Model. Thoughts?

GUIDS are large, so take a lot of space / aren't the most efficient join.

But if that's all you have - you can, in Power Query, switch them out for surrogate keys you make yourself. Though, I've never done this.

Any experience doing this in Power BI, and/or any thoughts?

Blog post on the subject (and where I got this idea).  Just curious other's thoughts and/or experiences.  I don't have Premium, so couldn't pull this off in the dataflow, it'd have to be a data-model level attribute. 

https://exceleratorbi.com.au/replace-guids-with-a-surrogate-key-for-better-performance/ 

3 REPLIES 3
lbendlin
Super User
Super User

Do a before and after performance check with DAX Studio and the Power Query Diagnostics. Then you can decide if it is worth the effort or not.

lbendlin
Super User
Super User

Meh. How many rows are we talking? Millions? Billions? Power BI keeps everything in memory (assuming import mode) so the UX performance gain will likely (easily) be eaten up by the extended ETL timing.

mmace1
Impactful Individual
Impactful Individual

Fact table is quite a few millions, with several GUIDs. 

Effectively I've already decided to get some surrogates on database side.  I don't know how the join peformance will be impacted, but it'll help keep some of our data models smaller (We're a non-Premium shop, so limited to 1GB). 

But was just curious in general if anyone had any experience / input.  i.e. - that you don't think the join speed would be all that affected is interesting.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI 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.

Top Solution Authors
Top Kudoed Authors