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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.