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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.