I used this DAX Function : DATEVALUE(fact_orders[Time_Id]).
in order to convert a date in the form of text to a date in datetime format.
it generate this error