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
admin11
Memorable Member
Memorable Member

Error msg on 'CONTAINSROW'what does it mean ?

Hi All

I just make a post below :-

https://community.powerbi.com/t5/Desktop/My-Sales-Table-and-Date-Table-unable-to-link/td-p/2545593#M...

 

After convert the date field from text to date , i get below error :-

 

Function 'CONTAINSROW' does not support comparing values of type Integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values. OLE DB or ODBC error: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)).

 

admin11_0-1653775596108.png

Hope some one can share with me how to remove the error msg

 

Paul

1 ACCEPTED SOLUTION
hnguy71
Memorable Member
Memorable Member

@admin11 ,

 

You need to change both fields to date. I believe you only changed one side of the table to date. 

 

Sales[date] must be a date field and DATE[Date] also must be a date field. Set both of those up and you'll be good to go.



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

1 REPLY 1
hnguy71
Memorable Member
Memorable Member

@admin11 ,

 

You need to change both fields to date. I believe you only changed one side of the table to date. 

 

Sales[date] must be a date field and DATE[Date] also must be a date field. Set both of those up and you'll be good to go.



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

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.