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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
DionTN
Helper II
Helper II

Add average to selected column and row

I want to add a calculated value to the selected row in the selected column.

 

I have this table:

DionTN_0-1661254353905.png

Now i want to add averages in this table.

So in row 1 column 2 i need AVERAGE(calctable[bodycomp1])

row 2 column 2 AVERAGE(calctable[cardio1])

 

and so on....

 

3 REPLIES 3
davehus
Memorable Member
Memorable Member

Hi @DionTN ,

 

Have you a sanitised version of the raw data you can share?

 

Did I help you today? Please accept my solution and hit the Kudos button.

https://drive.google.com/file/d/1MBudlc3W-DeyjOsN5TUtxMIvyWmIrgRw/view?usp=sharing

 

@davehus Usually i have a SQL connection, this is a export file. It needs to be a calculated field cause of changing filters. (CompanyID and appointment ID)

Anonymous
Not applicable

Hi  @DionTN ,

As checked your shared csv file, there are mulitple fields there. Which value field do you want to get the average value? Could you please give some special examples to explain your final expected result? Thank you.

 

If you want to get the average values, you can refer the following links to get it.

Show average per rows

Avg Dist =
IF (
    NOT ( ISBLANK ( 'Table'[Distance] ) ),
    CALCULATE ( AVERAGE ( 'Table'[Distance] ), ALLSELECTED ( 'Table' ) )
)

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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