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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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