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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Formula for a Date Field Minus Number Field to give a new Dates

I have a Target Start Date (Date field) and a number in days for Preparation of a project (Num Field). I am trying to create a column that gives me a Start of Preparation Date. I can do this easily in excel but it is not working in PowerBi all i am getting is an error and other formula like DateAdd wants a fixed days and wont let me add a Number Field.

 

[Target Date]-[Preparation Days] = New column Start of Preparation Date

 

Thanks in advance 🙂

2 ACCEPTED SOLUTIONS
Padycosmos
Solution Sage
Solution Sage

Hope this helps: 

You can create a measure like this

Padycosmos_0-1677677159154.png

If you want to create a calculated column, you can use ths following

stdate = wd[End Date]-wd[Work Days]

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thank you so much for all the help!!!!!

Anonymous
Not applicable

Thank you so much, unfortunately i cant use NETWORKDAY on my version. I have to keep my version in order to share my reports on the system. The video it so good and explains everything so well

Hope this helps: 

You can create a measure like this

Padycosmos_0-1677677159154.png

If you want to create a calculated column, you can use ths following

stdate = wd[End Date]-wd[Work Days]

 

Padycosmos
Solution Sage
Solution Sage

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.