Forum Discussion
Matrix Totals not making sense
Can someone tell me what on earth is PowerBI's logic here? And how can I get it to show the average of all the numbers in the row?
2 Replies
- MAwwad
Solution Sage
In your matrix visual, it looks like the Total column is displaying the sum of the values in each row, while the Grand Total row is displaying the sum of the values in each column.
To display the average of all the numbers in each row, you can add a new measure to your data model that calculates the average for each row, and then use that measure in your matrix visual.
Here's an example of how to create the measure:
- Go to the "Modeling" tab in the Power BI Desktop ribbon.
- Click "New Measure" and give the measure a name, such as "Row Average".
- In the formula bar, enter the following formula, replacing "Table" and "Value" with the names of your table and value column:
Row Average = AVERAGE('Table'[Value])- Click "Enter" to create the measure.
Once you have created the measure, you can add it to your matrix visual by dragging it from the "Fields" pane to the "Values" area of the visual. You should then see the average value for each row in the Total column of the matrix visual.
- Domenick
Helper IV
Thanks, that does make sense but in this situation, this would create an additional column beside each existing column which is not what I want. I want one summary column.