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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.