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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Mahendra_k
Helper I
Helper I

How to create a side-by-side dynamic table layout (two category groups with same unit columns)

Hi everyone,

I want to create a dynamic visual in Power BI that shows two sets of categories side-by-side with the same unit columns. The layout I want to achieve (visually) is:

Left block:
Category: Cat1, Cat2, Cat3
Columns: Unit1, Unit2, Unit3

Right block:
Category: Cat4, Cat5, Cat6, Cat7, Cat8
Columns: Unit1, Unit2, Unit3

Example of desired visual (conceptual):
Row 1: Cat1 120 135 140 | Cat4 180 761 90
Row 2: Cat2 95 110 102 | Cat5 160 158 165
Row 3: Cat3 150 142 130 | Cat6 145 149 150
Row 4: (empty left) | Cat7 147 191 135
Row 5: (empty left) | Cat8 247 291 235

Requirements:
1) The left side should show the first N categories (for example N=3).
2) The right side should show the next categories.
3) Both sides must have identical Unit1–Unit3 columns.
4) The layout must be dynamic and respond to slicers/filters (Region, Year, etc.).
5) Prefer a single visual if possible; if not, an approach that looks like a single table (e.g., synchronized visuals) is acceptable.
6) I tried a calculated table (UNION/ADDCOLUMNS) but it is static and does not respond to slicers.

Questions:
- Is there a recommended approach using measures and visuals so the layout remains dynamic?
- Is using two synchronized Matrix visuals the best practice, or is there a custom visual/workaround that provides a single visual with side-by-side grouping?
- If using measures, can someone share DAX patterns to dynamically pair categories into left/right columns while staying reactive to slicers?

1 ACCEPTED SOLUTION
v-ssriganesh
Community Support
Community Support

Hello @Mahendra_k,
Thank you for posting your query in the Microsoft Fabric Community Forum.

I’ve reproduced your exact requirement in Power BI Desktop using your sample layout and data logic. The side-by-side dynamic table with identical Unit1–Unit3 columns is fully working in a single visual and responds perfectly to slicers (Region, Year). For your reference, I’ve attached the .pbix file.

If I misunderstand your needs or you still have problems on it, please feel free to let us know. 
Thanks,
Ganesh Singamshetty.

View solution in original post

3 REPLIES 3
v-ssriganesh
Community Support
Community Support

Hello @Mahendra_k,
Thank you for posting your query in the Microsoft Fabric Community Forum.

I’ve reproduced your exact requirement in Power BI Desktop using your sample layout and data logic. The side-by-side dynamic table with identical Unit1–Unit3 columns is fully working in a single visual and responds perfectly to slicers (Region, Year). For your reference, I’ve attached the .pbix file.

If I misunderstand your needs or you still have problems on it, please feel free to let us know. 
Thanks,
Ganesh Singamshetty.

lbendlin
Super User
Super User

That requirement goes against the Power BI design philosophy, hard.  It's possible to create "TOP N and Others"  visuals but they have very different formats.

 

Showing the top 5 products and Other row - SQLBI

Filtering the top products alongside the other products in Power BI - SQLBI

 

What you can do is use two visuals side by side.  One for the TOP N, the other for the rest.  Use measures as visual filters.

danextian
Super User
Super User

Hi @Mahendra_k 

You might need to use a disconnected table containing a column with values that become visible depending on certain condition using a measure. But it is honestly hard to picture out what layout you're aiming for with just those descriptions. It would be eaiser for anyone in the community to help you had you provided a workable sample data (not an image) -  a link to an Excel file or a pbix stored in the cloud and the expected result using the same sample data which you can layout in Excel.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors