Forum Discussion

Alex22's avatar
Alex22
Regular Visitor
9 years ago
Solved

Sum based on Different Column

Hi,   I have columns [Month] , [Item]  and [Revenue], I want to show column "Month wise Revenue" as shown below in single table  
  • v-sihou-msft's avatar
    9 years ago

    Alex22

     

    To sum Revenue group on Month, you just need to use ALLEXCEPT() to ignore Item slicing in CALCULATE().

     

    You can create either a column or measure like below:

     

    =CALCULATE(SUM(Table[Revenue]),ALLEXCEPT(Table,Table[Month]))
    

     

    Regards,