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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Total is not the sum of column in a table

Hi everyone, i have the following issue:

I have a matrix of measures as columns and the measure with the mistake is defined by this formula: ([Measure 1]/[Measure 2])*[Measure 3]. In every row i have the correct value but in the Total row, i need the sum of the column but not the calculated formula.

federicorosmary_0-1609942475498.png

 

The measuere is TO_MIX. The Total 5942314.67 is wrong because is the calculated formula and not the sum of the column.

I appreciate your comments.

Regards.

Federico

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous .

 

Would you please try the following measure:

To_Mix =
SUMX ( VALUES ( 'Jerarquia APH'[Prod] ), [TO_C1] / [TON_C1] * [Ton_Mix] )

If it doesn't work, please show us sample pbix for accurate formula. And you can also refer to https://www.burningsuit.co.uk/blog/2018/07/dax-is-the-total-row-in-a-table-giving-you-grief/ for total issue in table visual.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous .

 

Would you please try the following measure:

To_Mix =
SUMX ( VALUES ( 'Jerarquia APH'[Prod] ), [TO_C1] / [TON_C1] * [Ton_Mix] )

If it doesn't work, please show us sample pbix for accurate formula. And you can also refer to https://www.burningsuit.co.uk/blog/2018/07/dax-is-the-total-row-in-a-table-giving-you-grief/ for total issue in table visual.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@Anonymous , Change you calculation like

 

Sumx(values(Table[Product]), <Your current formula>)

Anonymous
Not applicable

Do you mean like this?

federicorosmary_0-1609944193019.png

It still doesn´t work.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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