Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Niraj_vora0106
Helper III
Helper III

Date Error

Hi community, 

 

I'm getting this following error in my Date columns, 

Can anyone please help me out as I've encountered this Error for the first time.

Untitled.png In Dates Column I'm getting this Error,

 

And in Datetime and Custom column I'm getting the following Error : 

 

Expression.Error: We cannot convert the value #date(2021, 11, 11) to type Number.
Details:
Value=11/11/2021
Type=[Type]

1 ACCEPTED SOLUTION
MargaritaG
Resolver I
Resolver I

Hey, 

To avoid this issue, change regional settings of Power BI Dekstop

MargaritaG_0-1643181242426.png

Alternatively, you can just do it in PowerQuery. Change type using Locale 

MargaritaG_1-1643182314780.png

It's impoprtant to fist let Power Query  identify correctly date and then proceed with further transformations.
E.g. if you have Date/Time, then first change it with Locale to Date/Time format and only then to Date 

Hope this helps

 

View solution in original post

5 REPLIES 5
MargaritaG
Resolver I
Resolver I

Hey, 

To avoid this issue, change regional settings of Power BI Dekstop

MargaritaG_0-1643181242426.png

Alternatively, you can just do it in PowerQuery. Change type using Locale 

MargaritaG_1-1643182314780.png

It's impoprtant to fist let Power Query  identify correctly date and then proceed with further transformations.
E.g. if you have Date/Time, then first change it with Locale to Date/Time format and only then to Date 

Hope this helps

 

v-janeyg-msft
Community Support
Community Support

Hi, @Niraj_vora0106 

 

Has the problem been solved? I've been waiting for your reply to follow up.

Hi @v-janeyg-msft 

The issue has been solved, in Power Query there was Calculation error.

v-janeyg-msft
Community Support
Community Support

Hi, @Niraj_vora0106 

 

The problem is what's your original data format. Normal date formats don't go wrong. Can you show it so we can help you fix it?

vjaneygmsft_1-1642734287079.png

 

Best Regards,
Community Support Team _ Janey

amitchandak
Super User
Super User

@Niraj_vora0106 , Can you check the data, I think there are different formats of date which is not working.

Also, check it before the first time the change data type is applied 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.