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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.