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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Power BI Table Average Total Incorrect

Hi,

I selected a table from the visualization options. After adding my columns as an average rather than sum, I am receiving the wrong total. If that is just the way the calculation works for average, in this process how can I still use the average option and still get the total sum of what is showing on the table as an average. Please advise.

Average.PNG            Activity.PNG   

1 ACCEPTED SOLUTION

Hi  @Anonymous ,

 

Using values('Table[name]) instead,see below example:

Measure total = SUMX(VALUES('Table'[Name]),[Measure])

 

v-kelly-msft_0-1613709663026.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

7 REPLIES 7
anilgk
Regular Visitor

What do we do if there are nested categories ?

Hi,

Share some data, explain the question and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
HotChilli
Super User
Super User

If you want to learn how to fix this :

it's in the 'The totals in your table/matrix are wrong' section here :

https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882 

 

If you just want to fix the specific issue , link a sample pbix and someone will get you the right DAX code.

Anonymous
Not applicable

@HotChilli 

Hi, I look at the link you have sent. I tried a couple examples hoping it might help. The examples I have tried from the link were not successful. 

This is what I have tried:

MinScoreMeasure = MINX ( SUMMARIZE ( ‘Table’, ‘Table’[Group] , "Measure",[YourMeasure] ), [Measure])
MaxScoreMeasure = MAXX ( SUMMARIZE ( ‘Table’, ‘Table’[Group] , "Measure",[YourMeasure] ), [Measure])
AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( ‘Table’, ‘Table’[Group] , "Measure",[YourMeasure] ), [Measure])

 

My goal, is to use average as shown below from the selection. As for the total average, shown in the second image, I want to get the accumulated total from the average numbers on the table.

Average.PNGative.PNG

 

Hi @Anonymous ,

 

You should use SUMX instead of "MINX"," MAXX" and "AVERAGEX",as you wanna  correct the total value of the average result.

Check my sample .pbix file attached.

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Anonymous
Not applicable

Hi @v-kelly-msft

 

Thanks for working on this with me. I know you use dates to break down the average as shown below. I am not using any dates. Which I find your calculation to be a little harder. How can we replace your date calculation to just Names?

 

Your measure:

HL R12 CY = calculate (
AVERAGE('Datas Vol'[Total Volume]),
DATESBETWEEN( 'Dates'[date],
max( 'Dates'[Date])- 365,
max ('Dates'[Date])))
 
example.PNG

Hi  @Anonymous ,

 

Using values('Table[name]) instead,see below example:

Measure total = SUMX(VALUES('Table'[Name]),[Measure])

 

v-kelly-msft_0-1613709663026.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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