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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

managed aggregation with direct query table - using measures and average values - not possible?

Hi, 
I am not seeng the option for using average in managed aggregations.  e.g. see screenshot below

akthar_bimyth_0-1598210042351.png

Also can we use measures in managed aggregations?  the answers seems no.  , you can not see the measures fields coming up in the details column:

akthar_bimyth_1-1598210244875.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Got the answers I need!!!
There is an amazing article (2019/11) by Shabnam Watson that provided me with the answers:
https://shabnamwatson.wordpress.com/2019/11/21/aggregations-in-power-bi/

To get an average value, create a measure against the details table where the masure can be broken down to the basic calculation of sum/count  - this measure will hit the manged aggregation table that is in memory when placed into a visual.  Note, creating a measure using the divide() with sum and count calculation against the details table works but a measure created with the average() will not work
e.g.  

avg pricepaid = DIVIDE(sum(ProperyDetails[PricePaid]) , COUNTROWS(ProperyDetails) )  - works and hits the aggrgated table
avg pricepaid 2 = AVERAGE(ProperyDetails[PricePaid])   - does not hit the aggegated table.


View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Got the answers I need!!!
There is an amazing article (2019/11) by Shabnam Watson that provided me with the answers:
https://shabnamwatson.wordpress.com/2019/11/21/aggregations-in-power-bi/

To get an average value, create a measure against the details table where the masure can be broken down to the basic calculation of sum/count  - this measure will hit the manged aggregation table that is in memory when placed into a visual.  Note, creating a measure using the divide() with sum and count calculation against the details table works but a measure created with the average() will not work
e.g.  

avg pricepaid = DIVIDE(sum(ProperyDetails[PricePaid]) , COUNTROWS(ProperyDetails) )  - works and hits the aggrgated table
avg pricepaid 2 = AVERAGE(ProperyDetails[PricePaid])   - does not hit the aggegated table.


amitchandak
Super User
Super User

@Anonymous , check the data type of column. Also close Power Bi and open and try again.

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-aggregations

 

In case you still do not see it. create an issue -https://community.powerbi.com/t5/Issues/idb-p/Issues

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 
Managed aggregation provides 4 columns for configuring the aggregation:  

Aggregaton Column, Summarization, Detail Table, Detail Column

The Summarization column provides a list of aggregation options available (only 6) and if a particular option is not suitable in a field in the aggregate column (due to data type)  then it will be disabled

The Summarization drop-down in the Manage aggregations dialog offers the following values:

  • Count
  • GroupBy
  • Max
  • Min
  • Sum
  • Count table rows


As you can see there is no aggregation for average.  
Any advise if average can be used as a aggregation in the managed aggregation table for a direct query? Is there a work around that I am not seeing at the mokent?

 

Within summarization:

akthar_bimyth_0-1598258136360.png

 

akthar_bimyth_1-1598262341755.png

The article link you provided does not discuss other commonly used aggregations such as average that are not listed as options.
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-aggregations

Any information acknowledging that not all types of commonly used aggregations are available would be helpful.

Thanks 
Akthar

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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