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
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
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.