Forum Discussion
Matrix - Can Primary Row Be It's Own Calculation From Sub-Rows?
- 3 months ago
Hi BBlue20025
The Customize totals option works when the visual contains aggregated fields, measures, or visual calculations.
To access it, you can:
->Right click on the column that contains the Total value and select New visual calculation -> Custom
-> Or right click directly on the total cell value in the column to configure Customize totals from there.You can also access the same option from the Build section by clicking the dropdown next to the measure or aggregation used in the table visual.
This feature was introduced starting from the March Desktop release. So if you are using an older version of Power BI Desktop, please update to the latest version to access this functionality.
For Reference;
Power BI March 2026 Feature Summary - Microsoft Fabric Community
Create and Format Table Visualizations in Power BI - Power BI | Microsoft Learn
Hope this helps. Please reach out for further assistance.
Thank you.
The issue is that when Power BI rolls up to the Region level, it's averaging the store percentages instead of recalculating the % from the underlying data. You want it to recalculate from scratch at every level.
The fix is to make your measure always divide the totals directly rather than aggregating the child percentages. Something like:
daxStore % =
DIVIDE(
SUM('Sales'[YourNumerator]),
SUM('Sales'[YourDenominator])
)
When this measure runs at the Region level, Power BI automatically sums all the stores in that region before dividing
I'm not too familiar with how to use dax yet.
In the original data, I have columns by Store and Month.
I created a column that was the average for the 3 oldest columns:
= Table.AddColumn(#"Reordered Columns", "JFM_AVG", each List.Average(List.RemoveNulls({[January], [February], [March]})))
Followed by a column to get the % comparison of the newest month compared to the AVG of the previous three months
= Table.AddColumn(#"Added Custom", "PERC", each (([April]/[JFM_AVG)-1))
And then a column to look up the Region based on the Store
= LOOKUPVALUE('Region'[Region],'Region'[Store],'Store'[Store])
How would I use the dax example? Where do I type it?
- Ashish_Mathur3 months agoSuper User
Hi,
Please share the download link of the PBI file.
- BBlue200253 months agoFrequent Visitor
Unfortunately I cannot share the true data.
- Ashish_Mathur3 months agoSuper User
You can share anonymised data.