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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
louwjn
Regular Visitor

Subtract one date from another from different columns

Hi All,

 

I know the question has been asked before, but I cant get it to work. I have two tables with a many to many relationship. Its delivery data for warehouses, and there are "expected" delivery dates and "actual delivery dates.

 

The "actual delivery" dates are captured in a table named "101_data". The "expected delivery" days are residing in a table named "PO_Data". 

 

My objective is to determine whether a supplier delivers before or after the "expected delivery" dates. So the result of the calculation would be any negative value would indicate the amount of days delivered early. Positive values would indicate the amount of days delivered late. 

 

I have run a pilot in excel where I substract the two dates from eachother which poduces the desired result.

 

What would the calculation look like as the two colums resides in different tables as indicated above.

 

Thanks, Jan

1 ACCEPTED SOLUTION

Fixed issue by doing a merge between the two data sets.

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @louwjn 

 

Can you provida a data sample?

 

Many Thanks

Mariusz

01.JPG02.JPG

Fixed issue by doing a merge between the two data sets.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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