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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
acroberts
Frequent Visitor

Matrix/Pivot Question

Hello, I am trying to create a Power BI Matrix from sales data that looks like:

2017-05-10 (1).png

 

 

To create a summary, by sales person, by count of their role in a sale:

 

2017-05-10.png

 

I'm probably overthinking this, but can't seem to elegantly accomplish this without building side tables which extract each role and person and then merging those tables together.   Anyone have ideas on this?



 

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@acroberts

 

Hi, in Edit Query Select the 3 columns (Except Opp ID) and Transform Unpivot Columns.

 

You'll obtain something like this:

 

Unpivot.png

 

Change the name of the Columns. Close & Apply

 

Finally in a Matrix

 

matrix.png




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@acroberts

 

Hi, in Edit Query Select the 3 columns (Except Opp ID) and Transform Unpivot Columns.

 

You'll obtain something like this:

 

Unpivot.png

 

Change the name of the Columns. Close & Apply

 

Finally in a Matrix

 

matrix.png




Lima - Peru

Ah, yes @Vvelarde - that did the trick!   Thanks so much  🙂

Anonymous
Not applicable

You aren't going to get away from building a separate person table.   Once you have done that you can probably write measures --

 

Total Id := DISTINCTCOUNT(MyTable[Identify])

Total Develop := DISTINCTCOUNT(MyTable[Develop])

...

 

Helpful resources

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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