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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SanketSk
Frequent Visitor

Need Help Creating Matrix layout in Power BI

Hi Team,

I am new to Power BI and currently working with multiple tables. I need to create a single Table/Matrix visual that shows Sales and Purchase separately — first displaying monthly Sales quantities, followed by monthly Purchase quantities, similar to the attached image .

BI.jpg

 

I attempted to build this structure but couldn’t achieve . Requesting your guidance on how to set this up in Power BI. If possible, please also suggest a relevant YouTube.

 

Regards,
Sanket

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SanketSk , You need to use the calculation group. Just create a calculation group with your measures and then you can use them on top of the Column field 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
v-sgandrathi
Community Support
Community Support

Hi @SanketSk,

 

 

Just wanted to follow up and confirm that everything has been going well on this. Please let me know if there’s anything from our end.
Please feel free to reach out Microsoft fabric community forum.

 

Thank you.

v-sgandrathi
Community Support
Community Support

Hi @SanketSk,

Thankyou @GeraldGEmerick  and @amitchandak for your response to the query.

To set up this layout, make sure your date table is correctly marked as a Date table and has relationships with both the Sales and Purchase tables. This will allow the monthly grouping to work properly in the Matrix. You can also create a disconnected helper table for Sales and Purchase labels (such as Sales Qty and Purchase Qty) and use SWITCH() in a single measure to return the right value based on the selected label. This lets you show both Sales and Purchase sections in one Matrix without combining the tables. Place the helper table values in the Rows, the Date hierarchy (Month) in the Columns, and the SWITCH measure in Values. This approach works even if you’re not using Calculation Groups.

Thankyou.

GeraldGEmerick
Super User
Super User

@SanketSk You can achieve this with a separate table that contains your column hierarchy and then a measure that determines what to display, Sales or Purchases and for which month.

amitchandak
Super User
Super User

@SanketSk , You need to use the calculation group. Just create a calculation group with your measures and then you can use them on top of the Column field 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.