Forum Discussion
Merge Cells in Matrix
- 3 months ago
Hi BSathya
Can you share screenshot of how you want with the sample data
- 3 months ago
Hi BSathya ,
Merging the cell in Matrix or table visual is not possible has a definition that you turn on/off, however if you want to have the merge of the header columns that can be done using a hierarchy in the columns / rows that will show the values of the header or rows in a merge way.
BSathya
Unfortunately, Power BI does not have a native "Merge Cells" feature like Excel. Power BI visuals (Table and Matrix) work very differently from spreadsheets — they are designed for dynamic data analysis rather than pixel-perfect formatting.
What you can do instead:
For Row Grouping (most common request) Put multiple fields in the Rows section of the Matrix. Then go to Format your visual > Row headers and:
- Turn Off "Stepped layout"
- Turn On "Repeat row headers" (if needed)
This gives a grouped look similar to merged cells.
Blank out repeated values using DAX (very popular workaround) Create a measure like this:
daxDisplay Category = IF ( ISINSCOPE ( YourTable[SubCategory] ), YourTable[SubCategory], IF ( ISINSCOPE ( YourTable[Category] ), YourTable[Category], BLANK() ) )
Then use this measure in the visual instead of the original column. This creates a "merged" visual effect by hiding repeated parent values.
For Column Headers There is currently no native way to merge column headers like in Excel. You have to live with the standard hierarchical layout.