Forum Discussion
Date Difference between 2 different tables
- 4 years ago
Try this:
Measure = DATEDIFF(max('Detailed DED Analysis'[DocumentDate]),max(Miro[Fatura Tarihi]),DAY)Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Anonymous
Each Document Number in Miro table has many dates, which onr do you want to use in the calculation?
Appreciate your Kudos!!
- Anonymous4 years agoNot applicable
Hi VahidDM
I want the calculate to be like this: Detailed DED Analysis'[DocumentDate] - Miro[Fatura Tarihi]
(first Fatura Tarihi dates) that is, the earliest "Fatura Tarihi" belongs to that Document number. VahidDM
like this:
- VahidDM4 years agoSuper User
Try this:
Measure = DATEDIFF(max('Detailed DED Analysis'[DocumentDate]),max(Miro[Fatura Tarihi]),DAY)Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
- Anonymous4 years agoNot applicable
Thank you so much VahidDM
Seems to be working fine. But I couldn't understand why it gives a different result in the crossed out one in the picture below.