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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
BSathya
New Member

Merge Cells in Matrix

Hello Everyone,
I am trying to merge the cells in Matrix visual like in excel but couldn't find an option. Can you help with options if available in power query editor or by DAX please.

2 ACCEPTED SOLUTIONS
krishnakanth240
Resident Rockstar
Resident Rockstar

Hi @BSathya 

Can you share screenshot of how you want with the sample data

View solution in original post

MFelix
Super User
Super User

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.

 

 

MFelix_0-1778154365110.png

MFelix_1-1778154529388.png

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

6 REPLIES 6
cengizhanarslan
Super User
Super User

Merging cells in a Matrix visual is not supported in Power BI. The only visual in Power BI that supports true cell merging is the Paginated Report (RDL), which is purpose-built for pixel-perfect layouts including merged cells, grouped headers, and precise column spanning.

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

Hi @BSathya   ,
Thanks for reaching out to the Microsoft fabric community forum. 


I would also take a moment to thank @cengizhanarslan  and @MFelix   , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference. 
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.

Best Regards, 
Community Support Team

Hi @BSathya ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.

Best Regards, 
Community Support Team

pcoley
Impactful Individual
Impactful Individual

@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:

  1. 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.

  2. Blank out repeated values using DAX (very popular workaround) Create a measure like this:

    dax
     
    Display 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.

  3. 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.

If I helped solve your problem, mark this post as a solution.
Kudos are Welcome! | AI assisted for clarity of wording. |
MFelix
Super User
Super User

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.

 

 

MFelix_0-1778154365110.png

MFelix_1-1778154529388.png

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





krishnakanth240
Resident Rockstar
Resident Rockstar

Hi @BSathya 

Can you share screenshot of how you want with the sample data

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.