Forum Discussion

grdi's avatar
grdi
Frequent Visitor
1 year ago
Solved

SUMIFS function for unrelated tables using CONTAINS

I have 2 tables that are unrelated.  Essentially an employee master table, a table that essentially logs activities and assigns Yes No values.  If multiple employees perform the activity, for whateve...
  • danextian's avatar
    1 year ago

    Hi grdi 

     

    Try this:

    Sum of Yes = 
    CALCULATE (
        SUM ( activityTable[Yes] ),
        KEEPFILTERS (
            CONTAINSSTRING ( activityTable[Activity], SELECTEDVALUE ( empTable[empID] ) )
        )
    )
    

     

    Change the column name for the sum of no.