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
Wresen
Post Patron
Post Patron

Calendar Age between 2 dates

Hi and thanks for reading this.

 

I am trying to find a "correct" calender calculations for Age between 2 dates.

From what i can see "DATEDIFF('Table'[monthh];'Table'[Today];MONTH)" only changes Age when month changes , not taking the amount of days .

As you can see on the picture in yellow 69 days is still Age 2 but when we change month to 201912 it changes to Age 3

Is there any other way to calculate AGE between 2 dates ?

 

 

Age.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Not sure if i understand correctly but you want the difference in days? In that case you can use this code:

DATEDIFF('Table'[monthh];'Table'[Today];DAY)

 

As you can see the last part of a DATEDIFF function is the interval.

 

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

What it should have displayed?

 

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

Hi @Anonymous  and  @amitchandak 

 

I might run into a mind mine and did not think correctly 

 

i think i will solve my "problem" with the measure Erichulshof posted 

ROUNDUP(DATEDIFF('Table'[mont];TODAY();DAY)/30 ;0)
 
/thanks

 

Anonymous
Not applicable

Not sure if i understand correctly but you want the difference in days? In that case you can use this code:

DATEDIFF('Table'[monthh];'Table'[Today];DAY)

 

As you can see the last part of a DATEDIFF function is the interval.

 

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