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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dommyw277
Helper IV
Helper IV

Create long Month Name

Hi, i dont have a month column so i split the file name into two eg each file is named dataaug25, datasept25 etc.

So now i have 2 columns, one called month eg aug, sept and the other is year. How do i make the month column so sept is actually september, aug is august etc?

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@dommyw277 

You can create a new column in Power BI with the full month name by using the Power Query Editor or DAX.

Go to Transform Data.
Select your table.
Add a new column using "Add Column" > "Custom Column".
Use a formula like this:

powerquery
= if [month] = "jan" then "January"
else if [month] = "feb" then "February"
else if [month] = "mar" then "March"
else if [month] = "apr" then "April"
else if [month] = "may" then "May"
else if [month] = "jun" then "June"
else if [month] = "jul" then "July"
else if [month] = "aug" then "August"
else if [month] = "sep" or [month] = "sept" then "September"
else if [month] = "oct" then "October"
else if [month] = "nov" then "November"
else if [month] = "dec" then "December"
else [month]

 

For DAX 

dax
Full Month Name =
SWITCH(
TRUE(),
[month] = "jan", "January",
[month] = "feb", "February",
[month] = "mar", "March",
[month] = "apr", "April",
[month] = "may", "May",
[month] = "jun", "June",
[month] = "jul", "July",
[month] = "aug", "August",
[month] = "sep" || [month] = "sept", "September",
[month] = "oct", "October",
[month] = "nov", "November",
[month] = "dec", "December",
[month]
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@dommyw277 

You can create a new column in Power BI with the full month name by using the Power Query Editor or DAX.

Go to Transform Data.
Select your table.
Add a new column using "Add Column" > "Custom Column".
Use a formula like this:

powerquery
= if [month] = "jan" then "January"
else if [month] = "feb" then "February"
else if [month] = "mar" then "March"
else if [month] = "apr" then "April"
else if [month] = "may" then "May"
else if [month] = "jun" then "June"
else if [month] = "jul" then "July"
else if [month] = "aug" then "August"
else if [month] = "sep" or [month] = "sept" then "September"
else if [month] = "oct" then "October"
else if [month] = "nov" then "November"
else if [month] = "dec" then "December"
else [month]

 

For DAX 

dax
Full Month Name =
SWITCH(
TRUE(),
[month] = "jan", "January",
[month] = "feb", "February",
[month] = "mar", "March",
[month] = "apr", "April",
[month] = "may", "May",
[month] = "jun", "June",
[month] = "jul", "July",
[month] = "aug", "August",
[month] = "sep" || [month] = "sept", "September",
[month] = "oct", "October",
[month] = "nov", "November",
[month] = "dec", "December",
[month]
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Amazing works perfect thank you

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.