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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
shephaliB
Advocate II
Advocate II

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
shephaliB
Advocate II
Advocate II

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

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.