cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
mrainey Member
Member

Sum/Average?

Why does PBI not allow users to use the SUM and AVERAGE functions with measures? I feel like no matter if I create a measure or column, I should be able to do things like:

 

SUM(Any measure/column I want)

AVERAGE(Any measure/column I want)

 

This setback is getting in the way of a lot of things I'm trying to figure out...

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Re: Sum/Average?

@mrainey

 

To aggreagte a MEASURE we typically use an X iterator

 

i.e. this pattern

 

Sum of a MEASURE =
SUMX ( ALLSELECTED ( TableName[ColumnName] ), [Measure] )

Check out this recently posted question as well

 

Average-of-a-measure

 

Try my new Power BI game Cross the River

View solution in original post

1 REPLY 1
Super User III
Super User III

Re: Sum/Average?

@mrainey

 

To aggreagte a MEASURE we typically use an X iterator

 

i.e. this pattern

 

Sum of a MEASURE =
SUMX ( ALLSELECTED ( TableName[ColumnName] ), [Measure] )

Check out this recently posted question as well

 

Average-of-a-measure

 

Try my new Power BI game Cross the River

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors