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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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