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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
k3rz0rg
Advocate III
Advocate III

Column totals are not correct!

Hi everyone, 

I'm having this weird issue and desparately looking for a solution for this.
I have 3 measures which are Count, Average and Count * Average , the total of Average and Count * Average are not giving me the correct total as shown below : 

k3rz0rg_1-1691382317996.png

As you can see the total for the Average and the Count * Average are not the expected total I need.
I tried SUMX(Table, (Count * Average)) technique but no avail. 
Any calculation that will give me $3,434,682 for the Average and $6,363,700 for the for the Count * Average column would be great help! 

Thanks!

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

you need creat 2 measures

1)  m1 = Count * Average

2) m2 = SUMX( VALUES('Table'[ID]), [m1])

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

you need creat 2 measures

1)  m1 = Count * Average

2) m2 = SUMX( VALUES('Table'[ID]), [m1])

Spot on! This seems to be working in my case. I tried using SUMX without the VALUES() function and just the table/column name which didn't work but this did.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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