Forum Discussion
DAX Date Function (Datediff) cross table
Hi there,
I have two tables as sources in my report. Now I want to use datediff function on two dates one located in on the other in the other table. Somehow it doesnt seem to support this.
6 Replies
- parry2k
Super User
Anonymous is it one to many relationship? if yes, you can use RELATED function to get date from one side of table relationship.
- AnonymousNot applicable
parry2k Hi there, yes it is a one to many relationship. How will then the syntax look like in my example?
- parry2k
Super User
Anonymous try following, assuming table2 is on one side of the relationship.
Days Subscribe/Book = DATEDIFF(Table1[dateCreated];related(Table2[Opt-in time]);day)
- v-piga-msft
Resident Rockstar
Hi Anonymous ,
By my tests, the suggestion of parry2k should be helpful.
If you have solved your problem, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share your data sample and your desired output so that we could help further on it.
Best Regards,
Cherry