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
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
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.