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
coachbart
Frequent Visitor

error creating a new column month

Hello,

 

I made a table using calendarauto t make a date table. Creating new columns gives some problems that i don't understand.

 

creating a column

Month = FORMAT('Date'[Date] ; "mm" ) gives an error, change the name to Month1 is the right result. Why?
 
See screenshots:
create date tablecreate date table

create column Month | errorcreate column Month | errorcreate Month1 | goodcreate Month1 | good

1 ACCEPTED SOLUTION
coachbart
Frequent Visitor

Rebooted PC, everything is suddenly fine.

 

View solution in original post

5 REPLIES 5
coachbart
Frequent Visitor

Rebooted PC, everything is suddenly fine.

 

amitchandak
Super User
Super User

@coachbart , I tried on the latest power bi version, This version is working

month = FORMAT([Date],"mm") 

 

have you changed any regional settings ?

This is the file 

Version: 2.86.902.0 64-bit (oktober 2020)

 

Yes used English - United States and Enlish - Nederlands

coachbart
Frequent Visitor

Another strange thing. Year = YEAR('Date'[Date]) results 2017 thats fine, change it to jaar = YEAR('Date'[Date]) results in 17.

 

Reginal settings dutch , source file date format is 17-1-2017 also dutch

 

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.