Forum Discussion
How to use a date from another table ?
Hi,
I have the following table
Item Complete Date
1 1/2/2025
2 1/2/2025
3 2/15/2025
4 3/29/2025
5 4/3/2025
6 6/1/2025
I have another table with
Quarter Start Date End Date
Q1 1/8/2025 4/1/2025
Q2 4/2/2025 7/8/2025
What I need is a new column
Item Complete Date Quarter
1 1/2/2025 null
2 1/2/2025 null
3 2/15/2025 Q1
4 3/29/2025 Q1
5 4/3/2025 Q2
6 6/1/2025
2 Replies
- nilendraFabric
Super User
Try this
Quarter =
CALCULATE(
MAX('Quarters'[Quarter]),
FILTER(
'Quarters',
Items[Complete Date] >= 'Quarters'[Start Date] &&
Items[Complete Date] <= 'Quarters'[End Date]
)
) - Ashish_Mathur
Super User
Hi,
Write this calculated column formula in Table1
Quarter = calculate(max('Table2'[Quarter]),filter('Table2','Table2'[Start Date]<=earlier('Table1'[Complete date])&&'Table2'[End Date]>=earlier('Table1'[Complete date])))
Hope this helps.