Forum Discussion
Relate two tables by a date range.- DirectQuery
- Anonymous3 years ago
Hi Jug ,
You can create a measure for filtering.
Measure = IF(MAX('TABLE 1'[SERVICE_CODE])=MAX('TABLE 2'[SERVICE_CODE])&&MAX('TABLE 1'[SERVICE_DATE])>=MAX('TABLE 2'[START_DATE])&&MAX('TABLE 1'[SERVICE_DATE])<=MAX('TABLE 2'[END_DATE]),1)No relationship between tables.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Jug ,
You can create a measure for filtering.
Measure = IF(MAX('TABLE 1'[SERVICE_CODE])=MAX('TABLE 2'[SERVICE_CODE])&&MAX('TABLE 1'[SERVICE_DATE])>=MAX('TABLE 2'[START_DATE])&&MAX('TABLE 1'[SERVICE_DATE])<=MAX('TABLE 2'[END_DATE]),1)
No relationship between tables.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.