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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
butterscotch
Helper II
Helper II

Combine column

Hello everyone !

i have table and i have column with date data type , when i select the column to be inserted to my table, the column divided into 2 , year and month, how do i combine it to become 1 column ?

What Happened :

butterscotch_1-1704340099332.png

 

What i want :

butterscotch_2-1704340131782.png


Thank you in advance !

1 ACCEPTED SOLUTION
Vallirajap
Resolver III
Resolver III

Hii @butterscotch 

In a date column you used in visuals or tables, I will act as a hierarchy level in the below image (1. before).

1. before

Vallirajap_0-1704345335670.png

Select the table visual, and in the visualization pane, right-click the date column and change the hierarchy to the original date as shown in the below image.

 

Vallirajap_1-1704345456674.png

 

Did I answer your question?

Mark my post as a solution, this will help others...!

Hit the kudo also,

Thank you.

 

View solution in original post

8 REPLIES 8
Vallirajap
Resolver III
Resolver III

Hii @butterscotch 

In a date column you used in visuals or tables, I will act as a hierarchy level in the below image (1. before).

1. before

Vallirajap_0-1704345335670.png

Select the table visual, and in the visualization pane, right-click the date column and change the hierarchy to the original date as shown in the below image.

 

Vallirajap_1-1704345456674.png

 

Did I answer your question?

Mark my post as a solution, this will help others...!

Hit the kudo also,

Thank you.

 

Thank you!

Anonymous
Not applicable

Hi, @butterscotch 

Based on the information you have provided, Here are my answers to your questions.

  1. Create a new table as shown below.

vyilongmsft_0-1704344581270.png

 

  1. Create a new column and enter the following DAX code.

Column =

    'Table'[Month] & "-" & RIGHT(FORMAT('Table'[Year],"0000"),2)

vyilongmsft_0-1704344699422.png

 

  1. What you end up with is what you need.

vyilongmsft_2-1704344581272.png

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you!

Ahmedx
Super User
Super User

or in power query

"01."&[Month]&"."& Text.From([Year])

Screenshot_2.pngScreenshot_3.pngScreenshot_4.png

Ahmedx
Super User
Super User

pls try this

Screenshot_1.png

and try this

Start date = FORMAT( DATEVALUE("01/"&'Table'[Month]&"/"&'Table'[Year]),"MMM-YY")

Screenshot_1.png

Thank you

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors