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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rolf1994
Helper II
Helper II

The data types uniqueidentifier and nvarchar are incompatible in the add operator.

Hello,

 

I am getting an unexpected error when trying to load a report. I do not know what is causing this error so i thought someone here might know the answer. the error is as following:

Power BI example2.png

 

I am using direct query.

 

Thanks in advance!

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @rolf1994,

 

Assume you connect to SQL Server database in DirectQuery, have you specified any T-SQL query when you get data? Does this specific visual can't display data, other visuals are fine? Check if any calculated column or measure added in this visual, if it is, please check its data type.

 

Which desktop version did you run? Please share detail information for us to analyze the issue.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-qiuyu-msft

Assume you connect to SQL Server database in DirectQuery - Yes

have you specified any T-SQL query when you get data? - Yes, and it looks like if I do not use T-SQL query I do not get an error. However, I do not want to use all the data in the table.

Does this specific visual can't display data, other visuals are fine? - No, other visuals also show an error

Check if any calculated column or measure added in this visual, if it is, please check its data type. - I created a column using the concatenate function. 

 

I worked in the latest desktop version.

Greg_Deckler
Community Champion
Community Champion

Sounds like you are trying to add a uniqueidentifier (numeric) with a text value (nvarchar) which isn't going to work well. You would need to cast the nvarchar to an integer or float.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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