Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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?
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.
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 43 |