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
apollo89
Helper II
Helper II

Average of Total Sum in PowerBI

Hi All,

 

Consider the below data,

 

MonthParentChildValue
01ABA10
02ABA10
03ABA20
04ABA20
05ABA30
01ABB30
02ABB40
03ABB40
04ABB50
05ABB50
01DED15
02DED15
03DED16
04DED16
05DED17
01DEE17
02DEE18
03DEE18
04DEE19
05DEE19

 

An excel pivot table is shown below with Sum of Values per month.

I would like to calculate the Average of Total sum (as shown below) in PowerBI which would show the average distribution of Value of the Parent.

Summarizing at a parent level won't work since I would like to drill down to child level if required.

 

apollo89_1-1670466584364.png

 

Thank you!

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

Try this measure expression, replace Table with your actual table name throughout. This should get the correct individual and subtotal values.

Avg Sum =
AVERAGEX (
    SUMMARIZE ( Table, Table[Parent], Table[Month] ),
    CALCULATE ( SUM ( Table[Value] ) )
)

 

Pat

 

Microsoft Employee

View solution in original post

2 REPLIES 2
apollo89
Helper II
Helper II

Thank you for your response! I will try this and get back to you.

ppm1
Solution Sage
Solution Sage

Try this measure expression, replace Table with your actual table name throughout. This should get the correct individual and subtotal values.

Avg Sum =
AVERAGEX (
    SUMMARIZE ( Table, Table[Parent], Table[Month] ),
    CALCULATE ( SUM ( Table[Value] ) )
)

 

Pat

 

Microsoft Employee

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.