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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! 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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors