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 August 31st. Request your voucher.

Reply
jmscrx
Helper I
Helper I

Average across multiple columns producing wrong number?

Apologies in advance because I feel like I'm missing something obvious here, however I'm simply trying to write a measure that produces the average of the values across multiple columns (ultimately I'll have a slicer to display the resulting value based on month). For example, with data like this (illustration purposes only).

 

Value1ValueValue3Value3Value5Value6
51020304050

 

And this formula

 

TotalAvg = (SUM('Table1'[Value1]) + SUM('Table1'[Value2]) + SUM('Table1'[Value3]) + SUM('Table1'[Value4]) + SUM('Table1'[Value5]) + SUM('Table1'[Value6])/6)

 

The output value isn't what I'd expect (26), it's a much higher number (in my real data the values for 1 row are 60, 44, 22, 33, 36, 37 and the output of the formula is producing 201.17 instead of 39).

 

Again, I feel like I'm missing something obvious here and have tried several things, and read several other "average across multiple columns" discussions to no avail.

 

Thanks!

1 ACCEPTED SOLUTION
Irwan
Super User
Super User

hello @jmscrx 

 

your DAX looks good but you misplaced your bracket. This DAX means Value6 got divided by 6 then add to Value1 up to Value5.

Irwan_0-1720487024872.png

 

tried your data with your DAX and the result is as you need.

Irwan_1-1720487147954.png

 

Hope this will help you.

Thank you.

 

View solution in original post

3 REPLIES 3
Irwan
Super User
Super User

hello @jmscrx 

 

your DAX looks good but you misplaced your bracket. This DAX means Value6 got divided by 6 then add to Value1 up to Value5.

Irwan_0-1720487024872.png

 

tried your data with your DAX and the result is as you need.

Irwan_1-1720487147954.png

 

Hope this will help you.

Thank you.

 

@Irwan - I knew it was something silly that I was missing. Updated my DAX and this is working now as expected.

 

THANK YOU!

hello @jmscrx 

 

glad to be a help.


Thank you.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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