Power BI - Table and Matrix Visuals



Developing a table in a BI desktop is one of the easiest ways, you may either create a table manually and then manually do the entries or utilize the Table/Matrix visual where data is being displayed in the table. When you create a new measure then its expression is evaluated, and its result can be visualized through Table/Matrix visual.

How to Create a Table in Power BI?

Step 1 − Open the BI desktop and select the "Excel workbook" to import the dataset "D:\emi.xlsx".

Create a Table in Power BI

Step 2 − You can see the field names of the "Current_EMI" table in the Data pane.

Create a Table in Power BI 1

Step 3 − Now, you can select the "Table" visual. The default visual would be displayed and better to expand its size.

Create a Table in Power BI 2

Step 4 − Place the "Employee ID" into the "Columns" section. As you can observe in the screenshot, "Count of Employee ID" is populated on the canvas despite of the individual Employee IDs.

Create a Table in Power BI 3

Step 5 − You may click on the "Count of Employee ID" and select the "Dont summarize" option.

Create a Table in Power BI 4

As you can notice in the screenshot, the Employee ID field along with values are displayed.

Create a Table in Power BI  5

Similarly, add "Name", "Designation", "Salary", "Current_EMI" fields into the Columns section. You may select the "Dont summarize" option for "Salary" and "Current_EMI" fields.

Create a Table in Power BI 6

Is there a possibility to filter employee table based on their Age field?

Yes, With the aid of Drill Through, you may place the "Age" field into it. And select the "Used as category" where you can choose the specific age of the employee and view their details.

Create a Table in Power BI 7

For example: You can click on the 35 checkbox, only two employees details whose age is 35 are displayed on the canvas.

Create a Table in Power BI 8

How to Create a Matrix in BI Desktop?

Matrix visuals contains three main section Rows, Columns and Values. You may add the desired fields into them.

Step 1 − You can select the "Matrix" visual just adjacent to the Table visual.

Create a Matrix in BI Desktop

Step 2 − The default Matrix with no values has been inserted on the Report Canvas.

Create a Matrix in BI Desktop 1

Step 3 − Drag and drop the "Employee ID" field into the "Rows" where Employee ID field become a column heading and all its field values becomes rows.

Create a Matrix in BI Desktop 2

Step 4 − You may place the "Name" field into Columns section and place the "Current_EMI" field into Values. Therefore, the matrix has been generated which is slightly different from the Table visual.

Create a Matrix in BI Desktop 3

Step 5 − Could you answer the following questions?

  • How many employees whose designation is Software Engineer?
  • What is the age of Harry?

Yes, with the help of the Drill through the section, you can filter the generated Matrix.

Let's add the "Designation" field into the "Drill through" and then select the "Used as category" under the "Allow drill through when:" part.

Create a Matrix in BI Desktop 4

You may choose the "Software Engineer" from the listed category. Once you have selected the filtered designation, the list of employees whose designation is a Software Engineer will be populated on the canvas.

Create a Matrix in BI Desktop 5

How to Format a Matrix?

You may select the "Format your visual" where you can customize the designated Matrix.

How to Format a Matrix

Lets elaborate each section sequentially.

Style Presets

You can change the style of Matrix, just expand the "Style presets" tile and select the "Flashy rows" to make rows more colorful.

How to Format a Matrix 1

As you can notice in the screenshot, the attractive rows have been displayed.

How to Format a Matrix 2

Grid

You may turn on the horizontal and vertical gridlines and alter their color by expanding the tiles and selecting the desired color.

How to Format a Matrix 3

Borders

You can expand the "Border" tile and select any of the available options like "All", "Column header" etc.

How to Format a Matrix 4

Lets select "All" and tick all the border positions Top, Bottom, Left, and Right to set border lines for the Matrix and you can also modify the default color of the border lines.

How to Format a Matrix 5

Options

In the designated matrix, Row padding can be altered through the Row padding option and increase change the global font size so that you can see the data values with more clarity.

How to Format a Matrix 6

Values

You can change the Font style, Font size, Font color, Text color, Background color, and Alternate text color to make the Matrix more colorful.

How to Format a Matrix 7

Column Headers

Similarly, you can modify the field style and its size and change the default text color and its background color.

How to Format a Matrix 8

As you can observe in the screenshot, the column header text and background styling has been changed.

Row Headers

You can click on the "Row headers" and expand the "Text" tile to alter the styling of row headers.

How to Format a Matrix 9

Column Subtotals and Row Subtotals

You may turn off the column and row subtotals through these options. As you can observe in the screenshot, column subtotals and row subtotals are hidden in the visual.

Column Subtotals and Row Subtotals

Column Grand Total

You may modify the font style, modify its default size, and change the color of the column total. As you can notice in the screenshot, the styling of the Column total has been altered.

Column Subtotals and Row Subtotals 1

Row Grand Total

Click on the Row grand total section, expand the Values tile, set the Font size to 15, and alter the Background color.

Column Subtotals and Row Subtotals 2

Cell Elements

You may specify distinct formatting under various constraints to cell elements. You may set the conditional formatting by clicking on fx. Turn on the "Background color". After that, the highest data value background color will be changed to blue color.

Column Subtotals and Row Subtotals 3
Advertisements