Forum Discussion

Corleen's avatar
Corleen
Regular Visitor
9 years ago
Solved

Sum by Maximum Month

Good day   I have created the following measures   Expenditure = CALCULATE(sum(Balance[Balance]), Balance[Account Type] = "Expenditure") ~ this gives me sum of the balance where account type is  ...
  • v-haibl-msft's avatar
    9 years ago

    Corleen

     

    You can try this measure and show the result in Card visual.

     

    HighMonthSum =
    VAR HighestMonth = [Highest Expenditure Month]
    RETURN
        CALCULATE (
            [Expenditure],
            FILTER ( Balance, Balance[bookkeeping month] = HighestMonth )
    )
    

     

    Best Regards,
    Herbert