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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.