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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Mixednuts
Helper III
Helper III

Inconsistent translation of SQL Server UniqueIdentifier data type.

I have noticed in PowerQuery there is a difference in how the GUID is returned between DirectQuery and Import. This would cause problems for linking I would have thought.

 

Both methods convert the UniqueIdentifier datatype in SQLServer to Text in Power BI

 

However when the same table is queried via Direct Query the GUID is returned surrounded by braces {}, eg. {8B8B9F7B-21A8-4C87-02DA-08D74D01C96B}.

 

When Import is used the GUID is returned without braces, eg 8B8B9F7B-21A8-4C87-02DA-08D74D01C96B

 

I also noticed that while in the original source the GUID alpha characters are in upper case (which is consistent when retrieved via Direct Query), when Imported, they are all reduced to lower case, eg. b830bed8-3e01-4525-02ce-08d74d01c96b

 

Any idea why....?

3 REPLIES 3
pedrocrmventura
Regular Visitor

Hi @Mixednuts , v-frfei-msft

I had the exact same issue and I was able to solve it by adding a Step to transform that column data ("RequestId") to a GUID type:

= Table.TransformColumnTypes(#"Changed Type with Locale",{{"RequestId", Guid.Type}})

 

After adding this step, in Edit Relationship you can see that the columns are now of the same type, check image below :

 

pedrocrmventura_0-1715850769427.png


You can check for more info on this on: https://learn.microsoft.com/en-us/powerquery-m/guid-from

 

 

v-frfei-msft
Community Support
Community Support

Hi @Mixednuts ,

 

Kindly disable the option to check again.

222.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi Frank,

 

Thanks for responding.

 

After unsetting the type detection, PowerQuery showed the values in both the Import and Direct Query tables with consistent formats in the data preview, ie. no braces and all lower case.

 

However, after a full refresh back in the model, Direct Query tables are still showing GUIDs with braces and in capitals while Import tables are showing the same GUIDs without braces and in lower case.

 

Both tables (Import and DirectQuery) are sourced from the same Azure SQL Server table using basically the same SQL script with different date filtering.

 

regards,

John

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.