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
atin
Advocate III
Advocate III

How to create Calculated Column to generate a First Date for each Month/Year

Hi Everyone - Please see below a snapshot of a Customer table - The first column is the Invoice Date while the 2nd column is what I want to create and unable to do so. The 2nd Column table is the First Date ( what I am looking to generate) 

 

For example , customers with invoices dated from 01 Jan to 31st Jan 2018 should have a First Date of 01 Jan 2018

Similary customers with invoices dated from 01 Feb to 28 Feb 2019 should have a FIRST DATE of 01 Feb 2018 etc 

 

Please can you tell me how to create a CALCULATED COLUMN for this. 

 

See data details:

atin_2-1598836021477.png

 

 

 

Many thanks 

 

2 ACCEPTED SOLUTIONS
jdbuchanan71
Super User
Super User

Hello @atin 

Give this a try.

First Date = DATE ( YEAR ( [Invoice Date] ), MONTH ( [Invoice Date] ), 1 )

 

View solution in original post

amitchandak
Super User
Super User

@atin , Cuple of methods

As a new column

Start Date of month = eomonth([Invoice Date],-1)+1

 

Start Date of month = date(year([Invoice Date]),month([Invoice Date]) ,1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@atin , Cuple of methods

As a new column

Start Date of month = eomonth([Invoice Date],-1)+1

 

Start Date of month = date(year([Invoice Date]),month([Invoice Date]) ,1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
jdbuchanan71
Super User
Super User

Hello @atin 

Give this a try.

First Date = DATE ( YEAR ( [Invoice Date] ), MONTH ( [Invoice Date] ), 1 )

 

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!

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.