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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
j2turner
New Member

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
j2turner
New Member

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

j2turner
New Member

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.