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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
guyatisk
Helper I
Helper I

Getting a future age

I dont need someone to do this for me, but give me hints, advice, a point in the right direction.  And for some, this ask might be pretty simple.  In our data of customers, we have a request to list any clients that are going to turn 18 in the next three months.  They also want another list of clients who will be turning 21 in the next three months.  Is there an AGE formula or would I use a DateDiff function?

 

Any advice is appreciated.

2 ACCEPTED SOLUTIONS
FreemanZ
Super User
Super User

hi @guyatisk 

use DATEADD to shift years to simulate future ages.

View solution in original post

Idrissshatila
Super User
Super User

Hello @guyatisk ,

 

You could also check SQLBI's article https://www.sqlbi.com/blog/marco/2018/06/24/correct-calculate-of-age-in-dax-from-birthday/

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @guyatisk ,

 

You could also check SQLBI's article https://www.sqlbi.com/blog/marco/2018/06/24/correct-calculate-of-age-in-dax-from-birthday/

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




FreemanZ
Super User
Super User

hi @guyatisk 

use DATEADD to shift years to simulate future ages.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.