Forum Discussion

PowerBI123456's avatar
PowerBI123456
Post Partisan
5 years ago
Solved

Getting closest date

Hi,   I have 2 tables below. I want to bring over the closest checked processed date after the check deposit date for each account.      This is what the end results should look like:  ...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    5 years ago

    Sorry, try this

    =calculate(min('Table2'[Check Processed]),filter('Table2','Table2'[Account]=earlier('Table1'[Account])&&'Table2'[Check Processed]>earlier('Table1'[Check deposited])))