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
Cervo114
Frequent Visitor

Total incorrect

I have a column that calculates the margin as a percentage, between some columns. In the total I would like you to average the margin between all the rows, instead also in the total row, it calculates the percentage between the columns. How could I do? Thanks in advance

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

Hi @Cervo114 ,

According to your description, I create a sample.

vkalyjmsft_0-1655458696430.png

The average can't get the correct result in the Total.

vkalyjmsft_1-1655458789386.png

Here's my solution, create a new measure.

Measure =
IF (
    ISINSCOPE ( 'Table'[Column1] ),
    [Average],
    SUMX ( VALUES ( 'Table'[Column1] ), [Average] )
)

Get the correct result.

vkalyjmsft_2-1655459049012.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Cervo114 ,

According to your description, I create a sample.

vkalyjmsft_0-1655458696430.png

The average can't get the correct result in the Total.

vkalyjmsft_1-1655458789386.png

Here's my solution, create a new measure.

Measure =
IF (
    ISINSCOPE ( 'Table'[Column1] ),
    [Average],
    SUMX ( VALUES ( 'Table'[Column1] ), [Average] )
)

Get the correct result.

vkalyjmsft_2-1655459049012.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.