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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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 MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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