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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gbarr12345
Post Prodigy
Post Prodigy

Calculated columns with date seperated

Hi everyone,

 

I'm looking to create new calculated columns to seperate the already existing Date column I have. 

 

I want to have one column with just the day, another column with just the month and another column with just the year.

 

Any idea on how to do this?

 

Any help would be greatly appreciated.

 

gbarr12345_0-1721603473918.png

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @gbarr12345 

 

You asked for Calculated Columns so in DAX you would use 

 

 

Day = DAY('DataTable'[Promotion_Week_Ending])
Month = MONTH('DataTable'[Promotion_Week_Ending])
Year = YEAR('DataTable'[Promotion_Week_Ending])

 

 

But if you want Custom Columns in Power Query use these

 

= Date.Day([Promotion_Week_Ending])
= Date.Month([Promotion_Week_Ending])
= Date.Year([Promotion_Week_Ending])

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @gbarr12345 

 

You asked for Calculated Columns so in DAX you would use 

 

 

Day = DAY('DataTable'[Promotion_Week_Ending])
Month = MONTH('DataTable'[Promotion_Week_Ending])
Year = YEAR('DataTable'[Promotion_Week_Ending])

 

 

But if you want Custom Columns in Power Query use these

 

= Date.Day([Promotion_Week_Ending])
= Date.Month([Promotion_Week_Ending])
= Date.Year([Promotion_Week_Ending])

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thank you very much for that. Much appreciated!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors