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
shelbsassy
Resolver I
Resolver I

Type mismatch when refreshing date column

I tried updating my table with 2017 dates to include 2018 dates and when I tried refreshing the table I get a type mismatch.  In power bi the format is date but when I import into sql I used varchar which gave me a type mispatch.  But I tried to change the import data type to date but it only comes through as datetime and powerbi says it cannot have multiple time stamps of the same thing 00:00:00  Does anyone have any suggestions for how to resolve this?

1 ACCEPTED SOLUTION

Thanks for responding @v-shex-msft

I did some more research and was able to do an alter table alter column in sql to change the value to date and then power bi brought it in perfectly.  Thanks!

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @shelbsassy,

 

What is the format you stored date value, can you share some example?

In my opinion, I'd like to suggest you use text format to stored these date, then use Date.FromText to convert format.

 

BTW, I don't think power bi will support analysis timestamps as date, if you use any specific timestamps to store date value, you need to convert timestamps to normal datetime before you change column type.

 

Regards,

XiIaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi guys

I am having this issue and can’t figure out why. Do you have any ideas at all please?

I have appended two queries (new data for additional periods) but I am getting mismatch error when I refresh.

Was the solution to save dates as texts? When you say this what do you mean please?

Thanks again

James

Thanks for responding @v-shex-msft

I did some more research and was able to do an alter table alter column in sql to change the value to date and then power bi brought it in perfectly.  Thanks!

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.