Forum Discussion
DAX in power query
carogomez
Check the Data Type of the following column, it has to be Date/Time, if not right-click and change it to Date/Time before adding the new column, also check if any error exists.
[fechainicio]
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
- carogomez5 years ago
Helper I
"Fechainicio": I changed the column type to Date/time and the error persist.
What else is happenning, can`t understand.
Thank you very much for your fast reply.
- CNENFRNL5 years ago
Community Champion
carogomez , Power Query is also extremely strick with data type in calculation, if the column [fech] is of type Date, the formula should be what I wrote above; if DateTime, the formula should be this accordingly,
if [fech]<=DateTime.LocalNow() then 1 else 0- carogomez5 years ago
Helper I
Perfect, I applied all you told me, but is still persisting the error:
I made click in the error and this was the message.