Forum Discussion

Leyre1910's avatar
Leyre1910
New Member
1 year ago
Solved

Matrix tabular layout: Totals

Hello!! I have to replicate this table format in Power Bi: At the moment with the matrix visualization and activating the "Tabular Layout" i have achieved this. In this matrix data, des...
  • amitchandak's avatar
    1 year ago

    Leyre1910 , if you mean the total for "Ore". Matric will not show the total for the Rows/Columns field. Add that as a measure again in values to get the total

  • v-kpoloju-msft's avatar
    1 year ago

    Hi Leyre1910,
    Thank you for reaching out to the Microsoft fabric community forum. Thank you amitchandak, for your inputs on this issue and it is right.

    It appears that the issue you're encountering is due to the missing total in the "Ore" (Hours) column of your Matrix visualization in Power BI. Power BI Matrix visuals do not automatically aggregate numeric fields (such as Ore or Tariffa) when they are placed in the Rows section. Instead, they are treated as categorical labels, resulting in no total calculation.

     

    To resolve this, create a new measure for total hours: In the Fields pane, right-click on your data table and select New Measure, then input this DAX formula: 
    Total_Ore = SUM('YourTableName'[Ore])

    Update your Matrix: Remove the "Ore" field from the Rows section and add the newly created Total_Ore measure to the Values section. This will ensure that the total for "Ore" is correctly displayed for each Order Description and in the grand total at the bottom.

    If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

    Thank you for using Microsoft Community Forum.