cancel
Showing results for
Did you mean:
New Member

## CONTATENATEX Formula

Hello, im having difficulties understanding the CONTATENATEX formula. I am a complete beginner in this code writing world but i need the formula to conjoin two columns into one for my studies project.

My task is to conjoin columns "Year" and "Month number" into a new column that would join those together showing a year and month together, respectively 202101, 202102 etc. Im just confused about where in the code should i put the formula and what to write in it. Any help will be appreciated! (Look at the picture below for the table and code)

1 ACCEPTED SOLUTION
Super User
``````Date =
CALENDARAUTO (),
"Year", YEAR ( [Date] ),
"Month", FORMAT ( [Date], "mmmm" ),
"Month Number", MONTH ( [Date] ),
" Year Month Number",
YEAR ( [Date] ) * 100
+ MONTH ( [Date] )
)``````
4 REPLIES 4
Super User
``````Date =
CALENDARAUTO (),
"Year", YEAR ( [Date] ),
"Month", FORMAT ( [Date], "mmmm" ),
"Month Number", MONTH ( [Date] ),
" Year Month Number",
YEAR ( [Date] ) * 100
+ MONTH ( [Date] )
)``````
New Member

Hey, thank you very much Tamer, really saved my day! Kudos to You!

Super User

Hi @stefans124
" Year Month Number", YEAR ( [Date] ) * 100 + MONTH ( [Date] )

New Member

Date =

CALENDARAUTO(),

"Year", YEAR([Date]),

"Month", FORMAT([Date], "mmmm"),

"Month Number", MONTH([Date])

)

(this is the code written)

Announcements

#### Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

#### Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

#### Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

#### Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors