Forum Discussion
Create long Month Name
- 9 months ago
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]
)
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]
)
Amazing works perfect thank you