cancel
Showing results for 
Search instead for 
Did you mean: 
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
Solution Sage
Solution Sage

@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
Solution Sage
Solution Sage

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors