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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
TungNguyen_19
Helper III
Helper III

Why Totals Values of Table does not calculate when changing Date Slicer?

Hi everyone,

I have this measure in 'Table 2':

 

 

Total Free TEUs = SUM('Table 2'[All Free TEUs])

 

 

which is summized by this calculated column from same table

 

 

All Free TEUs = 'Table 1'[# Free Dry Teus] + 'Table 1'[# Free Refer Teus] + 'Table 2'[FREE TEUS DRY] + 'Table 2'[FREE TEUS REF] + 'Table 2'[FREE TEUS ALL] 

 

 

 And also 'Table 1'[# Free Dry Teus] and 'Table 1'[# Free Refer Teus] is Calculated Column

 

# Free Refer Teus = CALCULATE(SUM('Table 1'[TEUs]), 'Table 1'[Free Cont by Dates] = "Free", 'Table 1'[GROUP TYPE] = "Refer")

# Free Dry Teus = CALCULATE(SUM('Table 1'[TEUs]), 'Table 1'[Free Cont by Dates] = "Free", 'Table 1'[GROUP TYPE] = "Dry")

 

When I put this Measure to Table, and use the Date Slicer to filter, the values each rows changing as expected but the Totals row is not re-calculated?

TungNguyen_19_0-1680505282305.png

Note: # Stock Cont is still recalculated and its formular is here: COUNT('Table 1'[CONTAINER])

So what is the problem here, I have no idea what was wrong with my code. Please help me 😥

1 REPLY 1
Anonymous
Not applicable

Hi @TungNguyen_19 ,

 

Please try this measure:

 

total#free teus= =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[Depot/Terminal],
        "total", [free teus] //your measure   
    ),
    [total]
)

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

You can refer to the following documents that may be helpful to you:

sum error - Microsoft Power BI Community

Dealing with Measure Totals - Microsoft Power BI Community

Fixing Incorrect Totals Using DAX Measures In Power BI | Enterprise DNA

How to Make Measures Total Correctly in Power BI Tables - ArcherPoint

 

Best Regards,

Neeko Tang

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

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors