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
tjlundquist1
Helper I
Helper I

Subtract # of days from Date

I am trying to find the date that is less the # of days from another date. My issue is that I have a date (sold date) in one column, and # of days from date of loss to date of sale in another column - and I'm trying to calculate the date of loss. So Sold Date - # of days from loss to sale = Date of loss. 

 

I've used the DATEADD Function in this regard:

DOL = DATEADD('IAA and Metro (Appended)'[Sold Date].[Date],-'IAA and Metro (Appended)'[Calendar Days Loss To Assignment],DAY)
 
You can see below, eems to be working for some - but others it's producting blank values. It's looks like it's just throwing a blank if the result is earlier than 01/01/2019 - which is odd to me. 
 
sold date 1.jpgsold date 2.jpg
 
Any ideas? Thanks!
Trevor
1 ACCEPTED SOLUTION
tjlundquist1
Helper I
Helper I

I have overthought this to far. I created a column subtracting the date column from the # of days column and it worked like a dream. Still don't know why the DATEADD column was cutting off at 01/01/2019, but I have found my own solution. 

 

Trevor

View solution in original post

1 REPLY 1
tjlundquist1
Helper I
Helper I

I have overthought this to far. I created a column subtracting the date column from the # of days column and it worked like a dream. Still don't know why the DATEADD column was cutting off at 01/01/2019, but I have found my own solution. 

 

Trevor

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.