This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all,
I'm trying to create a dynamic measure for prvouis year sales on weekly basis, howver cannot manage to get the correct grand total, it's still showing the full year total.
Thanks in advance.
Test PY =
SUMX(
SUMMARIZE('DimDate','DimDate'[Year]),
IF([CY Test] && [ShowValueForDates]=TRUE(),
CALCULATE([Gross VOL],
FILTER('DimDate','DimDate'[Year]=YEAR(TODAY())-1)),BLANK()))
Hi @Brinki ,
Total calculations are not broken down in context like individual row calculations, especially when using complex DAX formulas involving conditional logic and time-smart functions. This often results in totals showing yearly totals instead of weekly totals.
When calculating totals, especially in the context of filters applied through slicers or report filters, using ALLSELECTED can sometimes provide better control over the context. This might not directly apply to your current formula but is worth considering if you're using any filters that could affect the calculation.
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 29 | |
| 28 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 36 | |
| 29 | |
| 25 | |
| 24 |