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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lekkerbek
Helper IV
Helper IV

Add date column in Power Query

Hi everybody,

 

I have two columns in my table:

ReportingYear

ReportingPeriod

 

Is is possible to add a custom column to combine the two to show an actual date? The day can be the first of the month. So for example when the year is 2022 and the reporting period is 5 I would like it to show:

 

1-5-2022 

 

1 = day

5 = month

2022 = year

 

I tried a number of things, but I keep getting errors.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lekkerbek ,

Plese try the below:

  • Add a custom column with value all 1 as Date.

shephaliB_0-1653042447488.png

  • Then you can select all 3 columns and merge. Give separator as "-"

shephaliB_1-1653042545000.png

  • Then change this Merged column to Date type. 

shephaliB_2-1653042604946.png

 

Thank you!

In case it answered your question, please accept it as a solution.
Appreciate Your Kudos.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @lekkerbek ,

Plese try the below:

  • Add a custom column with value all 1 as Date.

shephaliB_0-1653042447488.png

  • Then you can select all 3 columns and merge. Give separator as "-"

shephaliB_1-1653042545000.png

  • Then change this Merged column to Date type. 

shephaliB_2-1653042604946.png

 

Thank you!

In case it answered your question, please accept it as a solution.
Appreciate Your Kudos.

 

Why do I always overcomplicate things.

 

Thank you. You are a star!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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