Forum Discussion
Calculation Group & Parameter in Column & Column Total
Hi PierreL69,
Thank you for reaching out to Microsoft Fabric Community.
Here the issue is because when a Calculation Group is combined with a field or column parameter that switches between Year/Quarter/Month.
When the matrix reaches the last level of the column hierarchy, the Total column no longer has a single time period in scope. In that situation the calculation item is evaluated in a multi-period context so it returns blank, which is why the totals disappear.
You need to update the calculation items in Tabular Editor so that they return a correct value both at the leaf level and at the total level. Please follow below steps:
- Detect whether a single time period is in scope like using ISINSCOPE( Year / Quarter / Month ). If one of them is in scope, return your normal calculation like Current, Previous, YoY, etc..
- If none of them is in scope(which is the Total column), you must manually aggregate by iterating the visible periods:
SUMX (VALUES( <The lowest grain column> ), <The shifted measure>
This makes the calculation item produce a valid value when the field parameter removes the time grain from the total column.
After updating each calculation item using this pattern, the current and previous totals will appear again exactly as expected without needing a duplicate visual or any workaround in the report.
Thanks and regards,
Anjan Kumar Chippa
hi v-achippa
I have tried again what you mentioned in my test file, but Total column still not showing up
Here the file with the updated calculation item :
I would really appreciate it if you could show me what's wrong and what the correct formula is.
Thanks
- v-achippa9 months ago
Community Support
Hi PierreL69,
Thank you for the response. Unfortunately, there is no native toggle to restore totals with dynamic columns yet. Since no other workarounds or solutions are working so I recommend submitting your detailed feedback and ideas through Microsoft's official feedback channels. Feedback submitted through these channels is frequently reviewed by the product teams and can contribute to meaningful improvements.
Fabric Ideas - Microsoft Fabric Community
Thanks and regards,
Anjan Kumar Chippa