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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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