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
AlB
Super User
Super User

Changing date name in date column

Hi there,

 

I have a calendar table generated through CALENDARAUTO( ) and then adding a column

MonthName = FORMAT([Date], "mmm").

My OS regional setting is not US. I selected English (US) in Options-->Current file -->Regional Settings.

The MonthName column shows the name in English. The [Date] column, however, when in long format, shows the name of day and month in the regional language.

How can I change this to be shown in English?

 

Many thanks

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @AlB,

 

As we know, CALENDARAUTO returns a table with a single date column whose range is calculated automatically based on data in the model. I guess the date column in other table in current data model is formatted with a different languate, the same as your OS regional setting. The data model language is inherited from data source, it is not available to change it with DAX. 

 

In your scenario, I would suggest you use CALENDAR() instead of CALENDARAUTO. For example, if there existing a table called 'DataTable' containing a date column [DateValue], then, you could new a calendar table likw below:

Dim Date =
ADDCOLUMNS (
    CALENDAR ( MIN ( DataTable[DateValue] ), MAX ( DateTable[DateValue] ) ),
    "MonthName", FORMAT ( [Date], "mmm" )
)


Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.