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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Microsoft Employee
Microsoft 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
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.