How to Show All Values in Power BI Matrix [Not Just First Value]

In this tutorial, I have explained the issue I faced when trying to display all the values in the Matrix visual that I wanted to show in my Power BI report.

The Issue is:

I have created a Matrix visual where I added data to the Rows, Columns, and Values. When I place a text field [Location] in the Values section of a Matrix visual, the matrix displays the first value, and it does not display all the locations.

From the screenshot below, you can see that the matrix is not displaying all the locations.

Display All Values Not First in Power BI Matrix

Solution:

Unfortunately, Power BI Matrix will display the first or last value if we are taking the Text field in the Value section.

This happens because Power BI doesn’t know how to aggregate text values, unlike numbers (such as Sum, Average, etc.), so it displays the first entry value based on the row and column combinations.

We can use the CONCATENATEX() expression to show all the values in the Power BI Matrix.

Check out Add and Customize a Dropdown Slicer in Power BI

Display All Values in Matrix Visual Power BI

Below, you can see a Matrix visual in Power BI, where the Rows include the ‘Product‘ field, the Columns include the ‘Year‘ field, and the Values include the ‘Location‘ field.

In the Matrix visual, note that it displays only the first value based on the Row and Column combination.

Power BI Show All Values in Matrix

As you can see from the data source below, which is connected to Power BI, it displays different locations for the product along with the corresponding year.

Power BI Matrix Show All values

Now, I wanted to display all the Location values in the Matrix visual. See the Image below:

For example, let’s take a Keyboard product. For this, I wanted to show all the locations present in the data source, where it has [Keyboard with 2023 Year].

Matrix show all Values Not First in Power BI

Here are the steps to follow:

  1. On the Home tab of the Power BI report canvas, click on New Measure. It will open another window where you can add measures.
  2. Provide the below given expression in the Measure that will combine the values separated by a comma.
Combined Locations = CONCATENATEX(Sales,Sales[Location],",")

Replace Sales, Sales[Location] from the expression above with your data names provided.

Power BI matrix show all values not first
  1. Then, return to the Report view of the visual and drag and drop the newly created measure into the Value field from the Data pane.
Display all values instead of first or last values in Matrix Power BI
  1. Now, you can see the matrix visual shows all the values, not just the first value. Reference the screenshot below.
Show All Values in Power BI Matrix Not First

This way, you can show all values for a text field, not just the first or last entries from the data connected in a Power BI Matrix.

If you find any difficulties or have questions regarding this, please leave a comment in the section below.

Look at Other Power BI Matrix Tutorials:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…