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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.