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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
thisisausername
Helper II
Helper II

What to do about really long GUIDs?

We have long GUIDs in our system like 34613390-3bdc-e911-b076-00155d6c9e03

 

I'm guessing these columns are 'expensive' because they have high cardinality, but they're used in all our relationships in the model.


Is there any way around this? I read about removing such ID columns from your model but how does that work when these columns are all used in relationships?

5 REPLIES 5
vanessafvg
Super User
Super User

you could always create a lookup table and assign an integer index to them  and then just reference them through the int index via a table relationship if you have a very big transactional table.  How many are there?  There is best practice, but also has to weigh this against requirements.  

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Tables are varying sizes - but our biggest with two GUIDs has about 1.5M rows. 

 

Do you have any documentation to read about that pattern? Tried to give it a quick google but couldn't find anything

the positive about working in a tabular model which is what power bi is compression of duplicate values, so it may not be a huge issue, just depends on where your compute is coming from and how well resourced you are.    Obviously its good to follow best practice because your model isn't static, it just depends on what you planning on doing with it, it is a one off, are you going to productionise it, where will it be update from.   So many variables really.   But answers to those questions should help steer you.

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




this might also be useful

 

https://www.element61.be/en/resource/microsoft-power-bi-tabular-model-optimization





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thanks Vanessa.

 

The 1.5M row table has duplicates of the GUID: for each GUID there are rows per each day.

 

I therefore had to create a composite ID because I needed a unique ID for the daily grain of the data, so I combined the GUID plus the day. This probably didn't help the overall size of the model but I couldn't think of another way to do it.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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