Hi vincent,
Thank you for reaching out to Q&A Forum.
The issue is not with your DAX formula but with Excel caching the old filter context when navigating SSAS hierarchies. When you move from a date-level (e.g., 2024/5/4) to a higher level (e.g., May 2024), Excel doesn’t always refresh the MDX context, so the total remains unchanged.
To fix it, redefine your measure as:
Total Amount =
CALCULATE(SUM(Amount[Amount]), KEEPFILTERS(VALUES(Calendar[Date])))
This ensures totals recalculate correctly based on the active date filter.
Alternatively, refresh the PivotTable or convert it to formulas to force recalculation.