Forum Discussion

Ptolemaida's avatar
Ptolemaida
Frequent Visitor
1 year ago
Solved

Summing two rows within table

I have a table as below.

I want to create a measure who calculates the sum of category A and C for "Actuals". Returning 18.

Thank you

 

CategoryActualsLast Year
A1015
B514
C86
D918

 

  • Ptolemaida , Create a new measure

     

    DAX
    Sum_A_and_C =
    CALCULATE(
    SUM('YourTable'[Actuals]),
    'YourTable'[Category] IN {"A", "C"}
    )

1 Reply

  • Ptolemaida , Create a new measure

     

    DAX
    Sum_A_and_C =
    CALCULATE(
    SUM('YourTable'[Actuals]),
    'YourTable'[Category] IN {"A", "C"}
    )