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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
BumKneesOhYeah
Regular Visitor

Average Aggregated Data

I have a table like following.  **Note I put an empty column in tables so can read Value....without empty column the numbers were hard to read.

CompanyMonth Value
11/1/2025 5
12/1/2025 40
12/1/2025 50
52/1/2025 10
52/1/2025 20
52/1/2025 30
53/1/2025 0
53/1/2025 10

 

For scoring I want to average the Value by Company and month

CompanyMonth Value
11/1/2025 5
12/1/2025 45
52/1/2025 20
53/1/2025 5

 

Then I want to average by Company the above table.  So when shown in visual with Company only, it should be like below

Company Value
1 25
5 12.5

 

Then At Total level it should be average of above: 18.75.

 

I have tried using Summarize/addcolumns/AverageX and no luck.  What I have now is following which works except at Total level:

 

Meeasure =

VAR MonthlyAverages =
    SUMMARIZE(
        data,
        data[Company],
        data[Month],
        "Monthly/Company Average", CALCULATE(AVERAGEX( data, data[Value] ))
    )

var ContractorScoringTable =
SUMMARIZE(
    MonthlyAverages,
   data[Company],
    "Score per Company",AVERAGEX(MonthlyAverages,[Monthly/Company Average])
)

VAR Result =
AVERAGEX(ContractorScoringTable,
    [Score per Company])

RETURN Result

 

2 ACCEPTED SOLUTIONS
Cookistador
Super User
Super User

You can use the following measure in a matrix:

Average Measure= 
AVERAGEX(
    VALUES('Table'[Company]), 
    AVERAGEX(
        VALUES('Table'[Month]), 
        CALCULATE(AVERAGE('Table'[Value]))
    )
)

This is the result I get:

Cookistador_0-1764680512650.png

 

Do not hesitate to ask if you need more support

View solution in original post

You are welcome.  This simple additional measures will get your desired result

Measure 2 = AVERAGEX(VALUES(Data[Company]),[Measure])

Hope this helps.
Ashish_Mathur_0-1764759023639.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1764731681962.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you for input.  Cookistador's solution was the exact one I was looking for. I think yours might've been averaging in a different order because the Totals came out as 13.33, but I was looking for 18.75.

You are welcome.  This simple additional measures will get your desired result

Measure 2 = AVERAGEX(VALUES(Data[Company]),[Measure])

Hope this helps.
Ashish_Mathur_0-1764759023639.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Cookistador
Super User
Super User

You can use the following measure in a matrix:

Average Measure= 
AVERAGEX(
    VALUES('Table'[Company]), 
    AVERAGEX(
        VALUES('Table'[Month]), 
        CALCULATE(AVERAGE('Table'[Value]))
    )
)

This is the result I get:

Cookistador_0-1764680512650.png

 

Do not hesitate to ask if you need more support

Thank you, this worked perfect!  Now I am going to try on more complicated Measure rather than value!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.