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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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