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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
JayZee70
New Member

Upper case in the Calender Weekday name

Hello!

 

I have a small issue with my Weekday Name column.

I want the first letter to be an upper case.

What do I do?

This could perhaps be some issue in Microsft settings, but does anyone know how to fix it?

I am using this code:

JayZee70_1-1737714133125.png

 

JayZee70_0-1737714000851.png

 

BR/ Jesper

3 ACCEPTED SOLUTIONS
Bibiano_Geraldo
Super User
Super User

Hi @JayZee70 ,

Please try to update your DAX to look something like this:

Weekday Name = UPPER(LEFT(FORMAT(WEEKDAY('Calendar'[Date], 1), "DDDD"), 1)) & LOWER(MID(FORMAT(WEEKDAY('Calendar'[Date], 1), "DDDD"), 2, LEN(FORMAT(WEEKDAY('Calendar'[Date], 1), "DDDD")) - 1))
Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

View solution in original post

Hi @JayZee70 ,

Understood, you can do this:

Month Name = UPPER(LEFT(FORMAT('Calendar'[Date], "MMMM"), 1)) & LOWER(MID(FORMAT('Calendar'[Date], "MMMM"), 2, LEN(FORMAT('Calendar'[Date], "MMMM")) - 1))
Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

View solution in original post

Hi @JayZee70 ,

You got month name and month number column in your calendar like this:

Bibiano_Geraldo_0-1737729924275.png

 

Now select the month name column and go to Sort by Column and choose by Month No:

Bibiano_Geraldo_1-1737730018354.png

 



Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

View solution in original post

17 REPLIES 17
Sergii24
Super User
Super User

Hi @JayZee70, I believe you're right, it seems to be somehow related to your PC settings. In my case, this simple formula provides a desired result:

Sergii24_0-1737715100577.png

 

However, once you use Format() fucntion your value becomes a text, not date anymore. Therefore you can use any text transormations to obrain the necessary result:

Sergii24_1-1737715239378.png


Here is a code for copy-paste:

 

Week Day Capitalize First Letter = 
VAR _WeekDay = FORMAT( WEEKDAY( 'Table'[Date], 1 ), "DDDD" )            //obtain the day of week
RETURN
    UPPER( LEFT( _WeekDay, 1 ) )                                        //get the first letter from a variable and capitalize it
    &                                                                   //concatentate with
    RIGHT( _WeekDay, LEN( _WeekDay ) - 1 )                              //the rest of the word, which is length of a word without a first letter

 

 

Good luck! 🙂

Bibiano_Geraldo
Super User
Super User

Hi @JayZee70 ,

Please try to update your DAX to look something like this:

Weekday Name = UPPER(LEFT(FORMAT(WEEKDAY('Calendar'[Date], 1), "DDDD"), 1)) & LOWER(MID(FORMAT(WEEKDAY('Calendar'[Date], 1), "DDDD"), 2, LEN(FORMAT(WEEKDAY('Calendar'[Date], 1), "DDDD")) - 1))
Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

Hey!

Thanks, it worked out fine!

How do you code it if you want to do the same thing to Months?

I have a column "Month" but that is simply in number, I want the months by name.

 

BR / Jesper

Can you share a column containig data and dax used to create that column?

Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

JayZee70_0-1737726370895.pngJayZee70_1-1737726403837.png

 

Hi @JayZee70 ,
to get Month name you can use the following DAX:

Month Name = FORMAT('Calendar'[Date],"Mmmm")

This will result in something like this:

Bibiano_Geraldo_0-1737727642015.png

 

Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

Yeah, that is about what I have done, I did create a new column.

But I need the names to start with a capital letter.

Like you helped me with the weekdays.

Hi @JayZee70 ,

Understood, you can do this:

Month Name = UPPER(LEFT(FORMAT('Calendar'[Date], "MMMM"), 1)) & LOWER(MID(FORMAT('Calendar'[Date], "MMMM"), 2, LEN(FORMAT('Calendar'[Date], "MMMM")) - 1))
Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

Thank you Geraldo!

It works great.

You're welcome

Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

...now I am just having touble sort the axel in the chart so that it will show Jan-Dec.

Now it sorts in alphabetical order....

JayZee70_0-1737729284041.png

 

JayZee70_1-1737729324978.png

Of course, if I use my calender "Month" or my created Month it sorts correctly via the 3 dots in the upper right corner of the chart.

Any idea how to fix this?

Hi @JayZee70 ,

You got month name and month number column in your calendar like this:

Bibiano_Geraldo_0-1737729924275.png

 

Now select the month name column and go to Sort by Column and choose by Month No:

Bibiano_Geraldo_1-1737730018354.png

 



Is this post help you? Please consider to:

Accept as Solution!
Give a Kudo
Follow me on Linkedin

Thanks again. Sometimes the easiest things can be hard to see.

rajendraongole1
Super User
Super User

Hi @JayZee70 - you can achieve this at Power Query:

Open Power Query by selecting your data and clicking Data > Get & Transform Data > From Table/Range.
In Power Query, select the "Weekday Name" column.
Go to the Transform tab and click Format > Capitalize Each Word.
Close and load the data back into Excel.

 

rajendraongole1_0-1737714915070.png

 

 

HOpe this helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





If I go to Transform data, I can not edit my Calender, it is not even there, only my other tables.

JayZee70_0-1737715570219.png

 

Uzi2019
Super User
Super User

Hi @JayZee70 

 

try this 

In the Query Editor, go to the Transform tab, select Format, and select Capitalize Each Word.

 

I hope I answered your question!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

hi @JayZee70 

 

Check the steps with screen shot

Uzi2019_0-1737714919906.png

 

 

select your column

go to transform tab

select format option

select capitalize each word

 

I hope I answered your question!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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