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

View all the Fabric Data Days sessions on demand. View schedule

Reply
maurcollins1
New Member

age at a set date in time

Good morning

I need some help please with how to calculate someones age at a certain date in time.

I have the following fields

Academic Year 22/23

Date of Birth 03/05/1998

Course start date: this can be various points throughout the academic year for example 5th September 2022 or 7th January 2023

 

I need to show how old the person was at the 31st August for the academic year. so for academic year 22/23 it will be 31 august 2022.

i am currently using datediff: date of birth and datevalue 31/08.

This is working but i am aware that once we move to the new calendar year the year in the datevalue will change to 2023 and my calculation will be incorrect.

I cant use date(2022,08,31) as i would need to change the 2022 each year.

Any ideas please as i am new to power bi

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@maurcollins1 , You can use date like

 

date(year(today()) ,08,31)

 

or

 

date(if(month(today()) >8, year(today()) , year(today())-1),8,31)

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
Anonymous
Not applicable

Hi 

 

That has worked, thank you.

 

amitchandak
Super User
Super User

@maurcollins1 , You can use date like

 

date(year(today()) ,08,31)

 

or

 

date(if(month(today()) >8, year(today()) , year(today())-1),8,31)

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

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