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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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