cancel
Showing results for
Did you mean:
Highlighted
Member

## Total SUM on Row level in Table not working

Hi guys,

in the image below i have a Table with 4 columns that count distinct the values for each contributiongroup.

In the this table the Total dont sum the right amount.

I expect the following sum total :

141 and not 90

97 and not 61

141 and not 169

99 and not 68.

Thank you so much for help.

Greets,

Rega

Any suggestions?

11 REPLIES 11
Established Member

## Re: Total SUM on Row level in Table not working

Hi @regasanyoto,

You have the option "row subtotals" enabled I assume ?

Anyway I went to test it myself results displayed below:

when I tried to do the same as you it diddnt work with this as a result

But when I added a column value it did work like below

Hope this points you in the right direction.

Regards,

L.Meijdam

Member

## Re: Total SUM on Row level in Table not working

@LMeijdamThanks for your suggestion. But i need to do with a Table not with a Matrix.

I hope somebody can help me.

Established Member

## Re: Total SUM on Row level in Table not working

Hi @regasanyoto,

May I ask why you need to use a Table since a Matrix seems like the better choice if you want to display row subtotals.

Regards,

L.Meijdam

Member

## Re: Total SUM on Row level in Table not working

it's because i have a lot of columns values from a dimension that i will use.

@LMeijdam wrote:

Hi @regasanyoto,

May I ask why you need to use a Table since a Matrix seems like the better choice if you want to display row subtotals.

Regards,

L.Meijdam

Community Support Team

## Re: Total SUM on Row level in Table not working

Check if the following measure works.

```Measure =
IF (
ISFILTERED ( Table1[Contributiegroep] ),
DISTINCTCOUNT ( Table1[CUSTACCOUNT] ),
SUMX (
ALL ( Table1[Contributiegroep], Table1[Contributietarief] ),
CALCULATE ( DISTINCTCOUNT ( Table1[CUSTACCOUNT] ) )
)
)
```
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Member

## Re: Total SUM on Row level in Table not working

Unfortunatly the result is still not what i would have expected.

I created, based on your measure, the measure X. In the following image you can see that the total sum of the measure x is 76.

When i export this table to Excel and calculate the sum of this row i get 99 (this is the right amount).

Community Support Team

## Re: Total SUM on Row level in Table not working

Please share us a simplified model and expected result.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Member

## Re: Total SUM on Row level in Table not working

@v-chuncz-msftHow can i share my pbix to you?

Community Support Team

## Re: Total SUM on Row level in Table not working

Just post some dummy data and illustrate, but to be precise and concise.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.