Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
squarecat
Helper I
Helper I

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, here I'm attaching some dummy numbers so you can understand what I want to do.

 

2021

21.914.143
ene1.201.549
feb1.558.156
mar1.778.263
abr1.556.027
may1.531.298
jun1.872.954
jul2.014.762
ago1.177.969
sep1.933.642
oct3.131.360
nov1.549.479
dic2.608.685

 

squarecat_2-1747749445776.png

 

From this table i would just calculate the average of all months and that would be my yearly average. In this case, the number would be 1.826.179.

 

Now in Power BI I can't seem to be able to figure out how to calculate this number. In the best case, the measure created would be able to calculate the average by quarter and by year.

 

By year: 1.826.179

By quarter:  1.512.656

 

Can someone guide me to achieve this result? I want to clarify that I do have a calendar table built in the model if that helps.

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can create a measure like

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

View solution in original post

3 REPLIES 3
johnt75
Super User
Super User

You can create a measure like

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

Thank you! this worked, I just added .[month] for the measure to calculate what I needed, this is my final DAX

Avg =
AVERAGEX (
    VALUES ( 'Calendar'[Date].[Month] ),
    CALCULATE ( SUM ( 'Table'[Amount] ) )
)
squarecat
Helper I
Helper I

I also want to add that the number I obtained in the example by quarter refers to the Q1 (average of jan, feb and march)

Thanks in advance for any help!

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.