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
emmawdmi22
Helper I
Helper I

Average of Sum Measure

I need an average of the max of sums.

1 ACCEPTED SOLUTION

@emmawdmi22 

Follow:

1-Creating a measure:

 

SUMMeasure=SUM('Table'[PowerData])

 

2-Then the measure below is what you want:

 

AVGMeasure=AVERAGEX(
VALUES(Table[Date]),
[SUMMeasure]
)

 

 

View solution in original post

7 REPLIES 7
grantsamborn
Solution Sage
Solution Sage

Hi @emmawdmi22 

How about this?

zMeasure = 
    CALCULATE(
        AVERAGE( 'DataTable'[PowerData] ),
        ALLEXCEPT( 'DataTable', 'DataTable'[TimeStamp]
        )
    )

 

MohammadLoran25
Solution Sage
Solution Sage

Hi @emmawdmi22 ,

I am not sure If I understand what you need exactly.

But I think:

 

1-Creating a Measure:

SUMMeasure=SUM('Table'[PowerData])

2-Creating another measure:

AVGMeasure=AVERAGEX(
SUMMARIZE('TABLE','TABLE'[PowerData],'TABLE'[MachineId])
,
[SUMMeasure]
)

If this answer solves your problem, give it a thumbs up and mark it as an accepted solution so the others would find what they need easier.

Regards,
Loran

 

Thank you for your reply. This is almost right but not quite, I still need to group the original sum by the date/minute value before averaging it. How would I do this? 

Please share an example with data that you want to be shown as your result.

emmawdmi22_0-1680724117939.png

So if this is the data I am given, the answer would be 90. Sum up by the similar time first, then take an average of those sums. So ((10+20+30)+(40+60+80)+(10+20))/3

@emmawdmi22 

Follow:

1-Creating a measure:

 

SUMMeasure=SUM('Table'[PowerData])

 

2-Then the measure below is what you want:

 

AVGMeasure=AVERAGEX(
VALUES(Table[Date]),
[SUMMeasure]
)

 

 

Thank you!

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.