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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Chamalpam
Frequent Visitor

Cannot manipulate Date measure

Dear PowerBI Experts,

 

I have below date measure

End_Date = Date (year(2023),month(01),day(31))

 

And below measure

New_Date = DATE(YEAR([End_Date]),MONTH(([EndDate])-5),DAY([EndDate]))
 
The result i want is the date to appear as 30.09.2022 however i cannot seam to get this working. Any Advise?
 
Please help!
 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Chamalpam , Try

 

eomonth([End Date], -5)

 

or

 

eomonth([End Date], -4)

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

3 REPLIES 3
amitchandak
Super User
Super User

@Chamalpam , Try

 

eomonth([End Date], -5)

 

or

 

eomonth([End Date], -4)

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

This works. Thank you very much @amitchandak 

Thank you @amitchandak . It worked! I have typed it wrong the result i am looking for is 30.09.2022. 

 

the result i am getting is 30.09.2023

 

it should also work if the end_date is as below

End_Date = Date (year(2022),month(12),day(31))

 

result should be 31.08.2022

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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