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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Trying to get the Sum of a column and its wrong

Hi PBI community - I feel that this will be a simple fix but I am trying to get the total sum of a column in my table but PBI is summarzing the data and it is showing way higher than I believe the true value to be when I export the table into excel.

 

geleigh_1-1647984587378.pnggeleigh_2-1647984595359.png

 

The card is showing the higer amount and when I do the sum in excel it shows the correct amount of 380. Please help me fix this, using a SUM measure isn't working and it's not allowing me to select 'don't summarize' in the fields.

 

geleigh_3-1647984654875.png

 

@summarize

 

 

4 REPLIES 4
AlexisOlson
Super User
Super User

Without any additional filter context, it's summing the entire Def_Rev column. For example, it looks like you have dates as one of your table columns, so it's summing over all of the dates rather than, say, just the latest date.

 

Without seeing the underlying data and why the correct answer should be 380, it's hard to tell exactly what the issue is but I suspect it's something like I mentioned above,

Anonymous
Not applicable

Also I downloaded the table in excel again and the total from power bi is different than the sum I calculated in excel.

 

geleigh_0-1647986910728.png

 

Anonymous
Not applicable

Thanks, how would I filter it to be just the latest date?

You can either use a date filter/slicer or write a measure like this:

Latest_Def_Rev =
VAR _MaxDate = MAX ( Table1[Date] )
RETURN
    CALCULATE ( SUM ( Table1[Def_Rev] ), Table1[Date] = _MaxDate )

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.