Forum Discussion

LandonDodge's avatar
LandonDodge
Icon for Microsoft Employee rankMicrosoft Employee
9 years ago
Solved

Using specific data within a column in another column in the same table

I have the following data in which a higher level category (Fruit) is mixed in with its subcategories (Apples, Oranges, and Bananas).  Note that the Quantity for Fruit for each Period is the sum of Q...
  • Vvelarde's avatar
    Vvelarde
    9 years ago

    LandonDodge

     

    hi, try with this calculated column

     

    FruitTotal =
    VAR Period = Table1[Period]
    RETURN
        CALCULATE (
            SUM ( Table1[Quantity] ),
            FILTER ( Table1, Table1[Category] = "Fruit" && Table1[Period] = Period )
        )