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
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

Power BI Dev Camp Session 25 with aka link 768x460.jpg

Check it Out!

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

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

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.

Top Solution Authors
Top Kudoed Authors