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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Gangasaniravi
Helper I
Helper I

Grand total not correct

Hi All

 

Matrix table not giving total as per data in visual, in below visual Balnce is calculated measure with some date fileter in dax.In total we need to show only 170 not 200

MMM YYNov-22Dec-22
bucketBalanceBalance
Current 170187
0-30  
31-60  
61-90  
91 and above  
Toatal200220

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

@Gangasaniravi 

 

try using sumx instead of just sum for the balance measure 

ex : 

sumx( 

values(tbl_name[col_name]),

calculate ( sum[tbl_name[balance])
)

 

let me know if this works for you .

 

NB : the total =  193 

the difference = 193  - 169 = 32 

so before using sumx(), i would recommend to investigate the reason why the total is adding 32 . ( unless you  know the reason and you want to exlude the 32 , and have the total =  base on the numbers that are displayed in the visual ) 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Gangasaniravi 

You can try the following measure.

Measure =
SUMX ( VALUES ( Table[bucket] ), [Balance] )

Best Regards!

Yolo Zhu

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

Daniel29195
Super User
Super User

@Gangasaniravi 

 

try using sumx instead of just sum for the balance measure 

ex : 

sumx( 

values(tbl_name[col_name]),

calculate ( sum[tbl_name[balance])
)

 

let me know if this works for you .

 

NB : the total =  193 

the difference = 193  - 169 = 32 

so before using sumx(), i would recommend to investigate the reason why the total is adding 32 . ( unless you  know the reason and you want to exlude the 32 , and have the total =  base on the numbers that are displayed in the visual ) 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.