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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SachinC
Helper V
Helper V

Column Total Data Grid Table Incorrectly Summing % field

Hi,

I have a data grid table in PowerBI reporting on 5 columns, the 5th column being % values.

However, I do not want the % to be SUM but instead average.  

How do I get this done - i.e. columns 1-4 SUM and col 5 is Average?
Thanks!

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

Hi @SachinC ,

 

ccc13.PNG

I think you are talking about this total value.

Try to do like this.

Measure = 
IF(
    HASONEFILTER(Sales[Brand]),
    MAX(Sales[Sale 2013]),
    AVERAGEX(
        Sales,
        Sales[Sale 2013]
    )
)

ccc14.PNG

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @SachinC ,

 

ccc13.PNG

I think you are talking about this total value.

Try to do like this.

Measure = 
IF(
    HASONEFILTER(Sales[Brand]),
    MAX(Sales[Sale 2013]),
    AVERAGEX(
        Sales,
        Sales[Sale 2013]
    )
)

ccc14.PNG

 

Best regards,
Lionel Chen

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

 

 

amitchandak
Super User
Super User

@SachinC , Percent value are Averages unless force to ve sum.

How are you doing it

 

Ideally, they should be like

Sum(A)/Sum(B)

Are you doing Sum(A/B)?

Or Average(A/B)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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