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
lcanchila
Regular Visitor

DATEADD ERROR SYNTAX

Hi,

I'm trying create a calculate column to get a date subtracting 1 month, but I get a syntax error on MONTH. I don't know the reason.

 

See the function

 

error_dateadd.png

 

Thanks

1 ACCEPTED SOLUTION
lcanchila
Regular Visitor

I found the cause of error. It's for regional language setting. I have Spanish-Colombia. I changed it for Spanish-Mexico and work very well

View solution in original post

3 REPLIES 3
lcanchila
Regular Visitor

I found the cause of error. It's for regional language setting. I have Spanish-Colombia. I changed it for Spanish-Mexico and work very well

lcanchila
Regular Visitor

Thanks for your answer Herbert, but I tried create a table with the same expression and I got the same error

v-haibl-msft
Employee
Employee

@lcanchila

 

DATEADD will return a table containing a single column of date values. You cannot create a column with a table expression.

 

Best Regards,

Herbert

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.