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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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