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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jercks00
Regular Visitor

Average Sum of total month

Hi I would like to Average the Sum of total month from July 2023 to June 2024 , but I have data from July 2023 to July 2024 how would i do it

jercks00_0-1723779917997.png

This is the out put that i want 

ive tried this formula but i getting by day average from July 1 2023 to June 30, 2024

jercks00_1-1723780150103.png


 




1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1723783955164.png

 

 

Jihwan_Kim_0-1723783936617.png

 

Sales: = 
SUM(sales[sales])
expected result measure: = 
VAR _t =
    SUMMARIZE (
        FILTER (
            'calendar',
            'calendar'[Date] >= DATE ( 2023, 7, 1 )
                && 'calendar'[Date] < DATE ( 2024, 7, 1 )
        ),
        'calendar'[Month Year]
    )
RETURN
    AVERAGEX ( _t, [Sales:] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1723783955164.png

 

 

Jihwan_Kim_0-1723783936617.png

 

Sales: = 
SUM(sales[sales])
expected result measure: = 
VAR _t =
    SUMMARIZE (
        FILTER (
            'calendar',
            'calendar'[Date] >= DATE ( 2023, 7, 1 )
                && 'calendar'[Date] < DATE ( 2024, 7, 1 )
        ),
        'calendar'[Month Year]
    )
RETURN
    AVERAGEX ( _t, [Sales:] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

@Jihwan_Kim Is there a way to have this only apply to the row total of the matrix? For my need, I have the dates as my columns, the [branches] being the rows, and I have other measures for the values. What I'm needing to only have the average of the measures across the months display in the row grand total of the matrix. I do not want this new measure that you have provided an example for to be visible in the date columns - only the grand total.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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