cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
admin11
Super User
Super User

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
Super User
Super User

@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
Super User
Super User

@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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors