Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Sum data after matching dates from 2 tables

Hi Everyone   I have one that stumped me.    I want to sum $ values from one table based one dates from the this table and another table.    Example:   contact_table CID    failed_payment_da...
  • LivioLanzo's avatar
    7 years ago

    Hi Anonymous,

     

    create a 1-to-many relationship between concact_table and payment_table and then use this formula

     

    =
    SUMX (
        contact_table,
        VAR FailDate = contact_table[failed_payment_date]
        RETURN
            CALCULATE (
                SUM ( payments_table[payment_amount] ),
                payments_table[payment_date] > FailDate
            )
    )