Forum Discussion
tejapowerbi123
Helper V
6 years agoDate difference based on condition
Hello Community, Can you please provide your suggestion? I have two tables and they both have one to one relationship.My requirements is that I want to match ID on both table and if ID will match t...
- 6 years ago
Hi tejapowerbi123 ,
You could try below measure and refer to my sample for details
Measure 2 = IF(MIN(TA[ID])=MIN(TB[ID]), DATEDIFF(MIN(TA[DATE]), MIN(TB[DATE]), DAY), BLANK())Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tejapowerbi123
Helper V
6 years agoif id column match on table a and table then i want table a [date]-table b [date].That is the logic.
dax
Community Support
6 years agoHi tejapowerbi123 ,
You could try below measure and refer to my sample for details
Measure 2 = IF(MIN(TA[ID])=MIN(TB[ID]), DATEDIFF(MIN(TA[DATE]), MIN(TB[DATE]), DAY), BLANK())
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.