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
OHM
Frequent Visitor

How to add a number of days (leadtime) to a date

I need a DAX formula to add a number of days (leadtime) to a date, returning a new date. The added days is piced from a variable, so it is not a fixed number.

The needed function will be like this

"Original Date" + "# of days" returns "New Date" 

1 ACCEPTED SOLUTION
Back2Basics
Resolver I
Resolver I

Hi OHM

 

I would suggest creating a seperate table with the category in one column and additional days in the other. Provided this category is also in the orignial dataset you can link between your current table and this new table, creating a relationship between the category in each table.

 

Then you should be able to create a new column in your original table along the lines of:

 

Leadtime Deadline = [Original Date] + table2[additional days]

 

 

Having the second table means that if any of the variable additional days change you can simply update that table rather than updating the query/calculation. Best of luck

View solution in original post

1 REPLY 1
Back2Basics
Resolver I
Resolver I

Hi OHM

 

I would suggest creating a seperate table with the category in one column and additional days in the other. Provided this category is also in the orignial dataset you can link between your current table and this new table, creating a relationship between the category in each table.

 

Then you should be able to create a new column in your original table along the lines of:

 

Leadtime Deadline = [Original Date] + table2[additional days]

 

 

Having the second table means that if any of the variable additional days change you can simply update that table rather than updating the query/calculation. Best of luck

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