Forum Discussion

patri0t82's avatar
patri0t82
Icon for Post Patron rankPost Patron
5 years ago
Solved

SUM Column from one table based on value from another table

Hello, I have two tables, Incidents Total and CR_Data. I need to perform this without any relationship between the tables.   In the CR_Data table I have a column called Tier 1, which contains name...
  • richbenmintz's avatar
    richbenmintz
    5 years ago

    Hi patri0t82,

    I see you are creating a calc column, the following column should work in the CR_Data table

    Incidents Count =
    var tier = CR_Data'[Tier 1]
    return 
    CALCULATE(
    SUM('Incidents Total'[Count]),
    FILTER(
        'Incidents Total',
        'Incidents Total'[Name] = tier)
        )
    )

     

    Hope that Helps,