Forum Discussion

squarecat's avatar
squarecat
Icon for Helper I rankHelper I
1 year ago
Solved

Annual average from monthly average

Hello everyone,  I have a report built on Excel, but management wants it to be migrated to Power BI. In Excel I was using a dynamic table to obtain the sum of all the values per year and per month, ...
  • johnt75's avatar
    1 year ago

    You can create a measure like

    Avg =
    AVERAGEX (
        VALUES ( 'Date'[Year month] ),
        CALCULATE ( SUM ( 'Table'[Amount] ) )
    )