Forum Discussion

SeleneLindsay's avatar
SeleneLindsay
New Member
3 years ago
Solved

Get a column value by a date range

Table1 Name StartDate EndDate Sprint 1 04/09/2022 14:50:47 11/09/2022 18:10:48 Sprint 2 11/09/2022 18:30:00 25/09/2022 00:00:00   Table2 Worklog DateEnt...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi SeleneLindsay ,

    You can create a calculated column as below in Table2 to get it, please find the details in the attachment.

    #GetNameSprint = 
    CALCULATE (
        MAX ( 'Table1'[Name] ),
        FILTER (
            'Table1',
            'Table2'[DateEntry] >= 'Table1'[StartDate]
                && 'Table2'[DateEntry] <= 'Table1'[EndDate]
        )
    )

    Best Regards