A matrix is a type of visualization similar to a table, made up of rows and columns. Unlike a table, it supports hierarchical data and allows drill-down and drill-up operations. It can also display totals and subtotals, and avoids repetition of values for better readability.
Matrix Visualization
Let's take a dataset as an example in order to understand matrix visualization. This is the major dataset that will be used in this case.
Steps to Create a Matrix Visualization
Step 1: To make a matrix, begin with a table. Choose from the following options:Country, Region, Festival, and Days. In Power View, a table with these fields is displayed.
Step 2: Convert thetable to a matrix now. Select the Table. Navigate to the DESIGN tab. In the Switch Visualization group, choose Matrix from the dropdown menu.
Step 3: As you can see, The Table has been changed to a matrix.
Subtotals and Totals
By default, a Matrix displays subtotals and totals for grouped data. However, you can choose to hide or show them as needed.
To remove subtotals and totals, select the Matrix and go to the Design tab. In the Totals option under the Options group, select None.
To display subtotals and totals again, go to the Design tab, click Totals, and choose Rows.
This is the default setting in a Matrix.
Power View Filtering Matrix
You can filter the data in a Matrix to display only specific records. For example, you may want to view countries along with their religions and festivals where the number of days is greater than or equal to 2.
To apply this filter, select the Matrix visual and go to the Filters pane. Under the Days field, set the filter condition to “is greater than or equal to 2”. Then click Apply filter.
The Matrix will now display only the filtered data based on the selected condition.
Benefits of Matrix Visualization
The following are the benefits of using a matrix:
- It is capable of displaying data without repeating values.
- Rows and/or columns can be compressed and enlarged.
- You can dig down/drill up if it has a hierarchy.
- Totals and subtotals can be shown by columns and/or rows.