Ravi Chandu Edru/ videos

Tiny Fixes · 1 of 10

Why is my Power BI total wrong?

Oct 21, 2026 · 1:03 · Short

In this video

Every row is right, but the Total says 192 instead of 56.

By default, the Total row doesn't add up your rows. It runs the measure again over all rows at once:
SUM(Price) = 32, SUM(Qty) = 6, and 32 x 6 = 192.

The fix: multiply on each row first, then add.

Sales Amt = SUMX(Sales, Sales[Price] * Sales[Qty])

Shortcut: right-click the column, choose Customize total calculation, then Sum.
It only changes that one table or matrix. A card showing the measure still says 192.

Docs:
SUMX: learn.microsoft.com/dax/sumx-function-dax

Custom totals: learn.microsoft.com/power-bi/visuals/power-bi-visualization-tables#custom-totals

Footage: Buster Keaton, "Cops" (1922), public domain. Mars 2020 landing reaction: NASA/JPL-Caltech (no endorsement implied).

Read the transcript

Press a time to play from there.

Your rows add up to 56. So why does the Total say 192? Don't worry, this one catches almost everyone. Let's look at the measure. Price times quantity. And row by row? It's perfect. But here's the twist. By default, the Total row doesn't add up your rows.

Instead, it runs your formula one more time, on all the rows together. It sums every price, 32. Every quantity, 6. Then it multiplies. 32 times 6 is 192. So, the fix? It's lovely and simple. SUMX! It goes row by row. Multiplies first, then adds it all up.

6, 16, 56. There it is! Now, Power BI also has a shortcut, Customize total. Handy! But it only fixes this one table. Your cards? Still 192. So whenever you multiply two columns, reach for SUMX. If this saved you a headache, tap like and subscribe for more tiny fixes.

See you in the next one.