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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MichalHoltz
Frequent Visitor

Average of multiple cells

Hi,

I have the following table, with 24 columnes and 62 lines. How do I calculate the avarage of only the columns with numbers?

Is there a short way to calculate all in once?

Untitled picture.png

3 REPLIES 3
CahabaData
Memorable Member
Memorable Member

If you mean the individual average per column - the table visual offers this option.

 

If you mean the sum of all columns together - and then determining a single overall average; this would require a dax calculation.

 

 

www.CahabaData.com

Thanks. Can you suggest a DAx calculation?

here's a sample air code:

measure

Column X avg = Divide( Sum( Column X),

                                           COUNT(Table, [Column X])

                                      )

 

The count function only counts rows that have a number and should be ideal in your situation.

 

Set it up for a single column.  Sanity check the result by temporarily using a Card visual to be sure the operation is correct.  Then you can string together this same formula to add multiple columns.

 

 

www.CahabaData.com

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors