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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
vijayit43
Frequent Visitor

How to Calculate Average of Total in Power BI

Dear All,

             How to Calculate Average Of Total in Power BI. for Example

ItemQuantityAvgOf Total -Sum(Quantity)/NoOfRows
Item1109
Item2129
Item399
Item489
Item569

 

this Exampe is 5 Item and Quantity is (10+12+9+8+6)=45 which devided is NoOfRows is 5 Total Values is 9 in every Rows. how to achieve this please suggest. 

1 ACCEPTED SOLUTION
prateekraina
Memorable Member
Memorable Member

Hi @vijayit43,

 

Use following steps:

 

1. Create a new measure.
2. Use below DAX. Replace Table1 with your table name.

AverageofTotal = 
VAR Countofrows = CALCULATE(COUNTROWS(Table1),ALL(Table1))
VAR TotalQuantity = CALCULATE(SUM(Table1[Quantity]),ALL(Table1))
RETURN
CALCULATE(DIVIDE(TotalQuantity,Countofrows,0),ALL(Table1[Item])
)

Solution1.PNG

Prateek Raina

 

View solution in original post

5 REPLIES 5
jashan39
New Member

Just create a new measure with formula

Average = CALCULATE(AVERAGE('Table'['Column']),ALLSELECTED('Table'))

 

If you want to round the average to a certain number of digits, just do

Average = CALCULATE(ROUND(AVERAGE('Table'[Column]), 'Number of Digits' ),ALLSELECTED('Table'))

seww
Frequent Visitor

Thank You jashan.

prateekraina
Memorable Member
Memorable Member

Hi @vijayit43,

Kindly upvote my answer if you find it as suitable solution.

 

Prateek Raina

prateekraina
Memorable Member
Memorable Member

Hi @vijayit43,

 

Use following steps:

 

1. Create a new measure.
2. Use below DAX. Replace Table1 with your table name.

AverageofTotal = 
VAR Countofrows = CALCULATE(COUNTROWS(Table1),ALL(Table1))
VAR TotalQuantity = CALCULATE(SUM(Table1[Quantity]),ALL(Table1))
RETURN
CALCULATE(DIVIDE(TotalQuantity,Countofrows,0),ALL(Table1[Item])
)

Solution1.PNG

Prateek Raina

 

Capture.JPGdear prateek,

 

I want to take average amount to circle places only.in table when apply "total" to all fields.

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors