Anonymous
4 years agoNot applicable
Date Difference between 2 different tables
Hello,
I want calculate Date Difference between 2 different tables. I think I did but i have two problem.
1-) that but it gives wrong result when calculating same days.
I use this:
Miro Tarih = DATEDIFF(MAXX(RELATEDTABLE(Miro),Miro[Fatura Tarihi].[Date]),'Detailed DED Analysis'[DocumentDate].[Date],DAY)
2-) I also want to do the subtraction in reverse, but I couldn't.
I want the calculate to be like this: Detailed DED Analysis'[DocumentDate] - Miro[Fatura Tarihi]
not like this: Miro[Fatura Tarihi] - Detailed DED Analysis'[DocumentDate]
Regards,
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!!