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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
miro_x
Regular Visitor

No option for aggregation for my measure?

I have made a measure called Attainment, which I want to be averaged over a group of data, but it keeps summing these attainment values instead. There should be a option for the measure to change the aggregation, but it is not there at all. I cannot even plot the average attainment because of this. I checked the data type is whole number, so it should be able to handle any aggregation.

 

Untitled.png

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @miro_x ,

 

In PBI measures don't work as columns so the options are different. Measures calculate a result from an expression formula, and they are calculated at the time you call them.

 

Unlike columns that are "made" by a serie of values and the result of them doesn't change based on context, measure can change based on context.

 

A measure values is a single value based on it's context that's why you cannot make any aggregation on it.

 

When you calculate a measure if you want to have an aggregation of the measure itselft you need to use an aggregator formula that are the ones that end with and X, examples are SUMX, AVERAGEX, etc.

 

In your case you need to calculate the AVERAGEX of your measure.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @miro_x ,

 

In PBI measures don't work as columns so the options are different. Measures calculate a result from an expression formula, and they are calculated at the time you call them.

 

Unlike columns that are "made" by a serie of values and the result of them doesn't change based on context, measure can change based on context.

 

A measure values is a single value based on it's context that's why you cannot make any aggregation on it.

 

When you calculate a measure if you want to have an aggregation of the measure itselft you need to use an aggregator formula that are the ones that end with and X, examples are SUMX, AVERAGEX, etc.

 

In your case you need to calculate the AVERAGEX of your measure.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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