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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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