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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ssk_1984
Helper I
Helper I

Average of sum of month values in Quarter

Hi Team,

 

Pleaes help to write a measure to get the Average of sum of month values in Quarter

 

I have the below data, that to sum by month Quarter and final average out with the sumup values.

 

Data      Output 1   
Project IDEmp IDTotal UtilizationYearMonthQuarter Result Should beMonthSum of total_FTEAverage between sum of Total_FTE in Q1
1230.520231Q1 Q112.31.9
1340.820231Q1  22 
145120231Q1  31.3 
223120232Q1 Q2422.0
234120232Q1  52 
2560.520233Q1  62 
2780.820233Q1     
123120234Q1 Output 2   
134120234Q1 Q11.9  
145120235Q1 Q22  
223120235Q1     
234120236Q1     
256120236Q1     
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @ssk_1984 

try like:

Meaure =
VAR _table=
ADDCOLUMNS(
    SUMMARIZE(
        data,
        data[Year],
        data[Quarter],
        data[Month]
    ),
    "Utilization",
     CALCULATE(SUM(data[TotalUtilization]))
)
RETURN
AVERAGEX(
    SUMMARIZE(
        _table,
        data[Year],
        data[Quarter]
    ),
    [Utilization]
)

View solution in original post

3 REPLIES 3
FreemanZ
Super User
Super User

hi @ssk_1984 

try to plot a visual with quarter column and a measure like:

Measure = 
AVERAGEX(
    SUMMARIZE(
        data,
        data[Year],
        data[Quarter]
    ),
    CALCULATE(SUM(data[TotalUtilization]))/3
)

 

it worked like:

FreemanZ_0-1682068917021.png

Mahesh0016
Super User
Super User

@ssk_1984 

Mahesh0016_0-1681794166761.png

Quater AVG =
ROUNDUP (
    CALCULATE (
        [TotalUtilization],
        ALLEXCEPT ( 'Quater AVG', 'Quater AVG'[Quarter] )
    )
        / CALCULATE (
            DISTINCTCOUNT ( 'Quater AVG'[Month] ),
            ALLEXCEPT ( 'Quater AVG', 'Quater AVG'[Quarter] )
        ),
    1
)
############
TotalUtilization = SUM('Quater AVG'[Total Utilization])
FreemanZ
Super User
Super User

hi @ssk_1984 

try like:

Meaure =
VAR _table=
ADDCOLUMNS(
    SUMMARIZE(
        data,
        data[Year],
        data[Quarter],
        data[Month]
    ),
    "Utilization",
     CALCULATE(SUM(data[TotalUtilization]))
)
RETURN
AVERAGEX(
    SUMMARIZE(
        _table,
        data[Year],
        data[Quarter]
    ),
    [Utilization]
)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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