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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to calculate the average on Total of measure columns?

Hi All,

 

Can you tell me please how to see the average of the totla of 4 measure columns.

 

example on below image, the totla column of "total cost of festool per unit " showing a strange number, it is  the sum of those column & average aswell. but i am interested to calculate the sum for each row, and the average of all the sum total of the last column. 

any help and ideas are highly appreciated

 

p3.JPGp4.JPG

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Create a measure similarly as below:

Total Measure = 
var _total='Table'[Measure 1]+'Table'[Measure 2]+'Table'[Measure 3]+'Table'[Measure 4]
var _distinct=CALCULATE(DISTINCTCOUNT('Table'[category]),ALL('Table'))
Return
IF(ISINSCOPE('Table'[category]),_total,DIVIDE(_total,_distinct))

 And you will see:

v-kelly-msft_0-1623658274174.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

You can get your data by using a calculated column. Here's a tutorial on how to create those:

 

Tutorial: Create calculated columns in Power BI Desktop - Power BI | Microsoft Docs

v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Create a measure similarly as below:

Total Measure = 
var _total='Table'[Measure 1]+'Table'[Measure 2]+'Table'[Measure 3]+'Table'[Measure 4]
var _distinct=CALCULATE(DISTINCTCOUNT('Table'[category]),ALL('Table'))
Return
IF(ISINSCOPE('Table'[category]),_total,DIVIDE(_total,_distinct))

 And you will see:

v-kelly-msft_0-1623658274174.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.