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
Ronning
Frequent Visitor

Total row wrong

Hi i have a problem with the total row in the column "TEST" as you can see the total row shows the last rows value not the summed total as i want. 

 

Ronning_0-1650963994067.png

TEST = CALCULATE([Revenue Skidata]
     , FILTER(ALL(Dim_Date_TransactionDate) , Dim_Date_TransactionDate[YearWeekNr] = MAX(Dim_Date_TransactionDate[YearWeekNr]) -100 ))
 
Thanks
1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi. The engine is working perfectly. Totals in Power Bi are not the sum of whatever is in the table. They are running the same measure at a different aggregation level. Your measure is just aggregating by MAX. So totals will use MAX.

In order to make it SUM you can do a second measure using this one that will iterate the results.

Check this post out that explains how to fix totals for similar scenarios: https://blog.ladataweb.com.ar/post/636304907248467968/dax-corrigiendo-el-total-de-una-medida

I hope that helps,


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

Happy to help!

LaDataWeb Blog

View solution in original post

1 REPLY 1
ibarrau
Super User
Super User

Hi. The engine is working perfectly. Totals in Power Bi are not the sum of whatever is in the table. They are running the same measure at a different aggregation level. Your measure is just aggregating by MAX. So totals will use MAX.

In order to make it SUM you can do a second measure using this one that will iterate the results.

Check this post out that explains how to fix totals for similar scenarios: https://blog.ladataweb.com.ar/post/636304907248467968/dax-corrigiendo-el-total-de-una-medida

I hope that helps,


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors