Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Magesen_Muniand
New Member

Additional row for Matrix table

Hi
How can i show additional row (Staff ID) for matrix table?
in this scenario i wanted to show Staff ID next to Staff Name.
Pls advise. TQ

Staff.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you shafiz_p and Payeras_BI 

Hi, @Magesen_Muniand 

Based on your description and the screenshots shown, I've created the following sample data:

vjianpengmsft_0-1729581648815.png

If you want to add a column next to name, then you need to make a header table:

vjianpengmsft_1-1729581714202.png

Sort the name column by sortID:

vjianpengmsft_2-1729581789199.png

Create the following three measures:

ID = MAX('Table'[Staff ID])
ProductValue = 
VAR _product = SELECTEDVALUE(HeaderTable[Name])
RETURN CALCULATE( SUM('Table'[Value]),'Table'[Product] = _product)
Measure = SWITCH(TRUE(),
SELECTEDVALUE(HeaderTable[Name]) = "Staff ID",[ID],
[ProductValue]
)

Create a matrix:

vjianpengmsft_3-1729581880495.png

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Thank you shafiz_p and Payeras_BI 

Hi, @Magesen_Muniand 

Based on your description and the screenshots shown, I've created the following sample data:

vjianpengmsft_0-1729581648815.png

If you want to add a column next to name, then you need to make a header table:

vjianpengmsft_1-1729581714202.png

Sort the name column by sortID:

vjianpengmsft_2-1729581789199.png

Create the following three measures:

ID = MAX('Table'[Staff ID])
ProductValue = 
VAR _product = SELECTEDVALUE(HeaderTable[Name])
RETURN CALCULATE( SUM('Table'[Value]),'Table'[Product] = _product)
Measure = SWITCH(TRUE(),
SELECTEDVALUE(HeaderTable[Name]) = "Staff ID",[ID],
[ProductValue]
)

Create a matrix:

vjianpengmsft_3-1729581880495.png

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Payeras_BI
Solution Sage
Solution Sage

Hi @Magesen_Muniand ,

I understand you want to drag both 'Staff Name' and 'Staff ID' into the rows of the matrix, then change the layout to 'Tabular' and enable 'Repeat Row Headers' to display it as shown in your picture.

 

Payeras_BI_0-1729504178542.png

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
shafiz_p
Super User
Super User

Hi @Magesen_Muniand  Not very clear what you are expecting actually. Share some details about what your expected result in matrix.

 

Your staff ID already next to Staff Name. Also, You would not be able to create any manual additional rows in maxtrix visual except a blank rows.

If you want to create a blank rows in matrix visual, you can use format option blank rows for spacing. See image below:

shafiz_p_0-1729500923294.png

 



Hope this helps!!

If this solved your problem, please accept it as a solution!!

 


Best Regards,
Shahariar Hafiz

Currently the Matrix table showing as per below :-

Magesen_Muniand_0-1729502880795.png


Expected to see the Matrix table as per below :-

Magesen_Muniand_2-1729503033999.png

i need the solution using matrix table, not ordinary table bcoz i need to use dynamic filtering to show the columns. so pls advise the solution as requested for the matrix table. TQ

This is the matrix. Place all the dimension in rows.

shafiz_p_0-1729504241771.png

 

After that go to option Layout and Style pressets, change layout from compact to tabular. See image below:

shafiz_p_1-1729504374693.png

After selecting tabular, you will get your desired result. See image below:

shafiz_p_2-1729504429216.png

 

 

Hope this helps!!

If this solved your problem, please accept it as a solution!!

 

Best Regards,

Shahariar Hafiz

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors