Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi PBI Experts,
We have two different tables Tabele1 and Table2 in that table i need find Caluclated Column dax function for Date diffence between two tables(Joining date and Action date along with filter is Action Type = "Termination"), Here need to find Date difference(Joining date and Action date) and also apply the filter Action Type = "Termination",Could you please suggest solution.
Thanks,
Shaik.
Solved! Go to Solution.
Hi, @Mahamood0218 ;
Try it.
Diff = DATEDIFF(RELATED(Table1[Joining date]), [Action date],DAY)
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Mahamood0218 ;
Try it.
Diff = DATEDIFF(RELATED(Table1[Joining date]), [Action date],DAY)
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Do both tables have the same Unique Key on [Emp Id]? If so, you can join them via a relationship and specify one-to-one cardinality. From there, you can use a DAX function of RELATED ( ) to get to a value in another table.
My Date Diff in Table 1 = DATEDIFF( ....RELATED('Table 2'[Action Date])...) (sorry, I don't recall exact syntax of the functions.
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
8 | |
8 | |
7 |
User | Count |
---|---|
17 | |
13 | |
7 | |
6 | |
6 |