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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Change Grand total sum to avg in power bi

Hi All,

 

below data i have grand total row. where it is actually summing up the values in total section.

but i want to display average there, for example in this case it should display 87 not 439.

johnbasha33_0-1594292390515.png

i have tried many measure ideas, below is one.

kindly help

@mwegener @lbendlin @stevedep 

 

Sum - Avg =
VAR avgperf = sum(SumView[Category Pref.])

Return
IF(
HASONEVALUE('Calender Date'[Month])
,avgperf
,AVERAGEX(SumView,avgperf))
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @AntrikshSharma  thanks for your time in answering my question.

 

I actually tried many measures from the morning nothing worked out.

 

Strangley below measure working as per my expectation.

 

Mavg = IF
(HASONEVALUE(SumView[Category]),
[Measure 2],
AVERAGEX(VALUES(SumView[Category]),[Measure 2])
)
 
Measure2 means : sum(categoryPref)

View solution in original post

2 REPLIES 2
AntrikshSharma
Super User
Super User

Try 

Sum - Avg =
AVERAGEX (
    VALUES ( 'Calender Date'[Month] ),
    CALCULATE ( SUM ( SumView[Category Pref.] ) )
)

 

Anonymous
Not applicable

HI @AntrikshSharma  thanks for your time in answering my question.

 

I actually tried many measures from the morning nothing worked out.

 

Strangley below measure working as per my expectation.

 

Mavg = IF
(HASONEVALUE(SumView[Category]),
[Measure 2],
AVERAGEX(VALUES(SumView[Category]),[Measure 2])
)
 
Measure2 means : sum(categoryPref)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.