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
Anonymous
Not applicable

Counting Across Columns

I have this table:

1.PNG

 

How do I go about:

1. Counting the total amount of all replies by manager (very happy + happy + unhappy etc.)

2. Bucketing the counts by category (count of happy, count of unhappy, etc.) by manager

3. Counting total number of all replies regardless of manager (total number of survey responses)

4. Bucketing total counts by category regardless of manager (count of happy, count of unhappy, etc.)

 

I'm eventually looking to make some kind of table/matrix that shows by account manager the number of each they have in comparison to the total. So for example the ending result on a small scale would look something like:

 

Cathy Butler across all categories has 25 "happy" responses

Ryan Cundiff across all categories has 20 "happy" responses

There are a total of 500 responses between all managers regardless of whether it's happy/unhappy/in between so these two together would account for 9% of all happy responses (45/500)

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

You might considering unpivoting all of the columns except the first.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

You might considering unpivoting all of the columns except the first.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@Greg_Deckler That was all I needed. Thanks!

Awesome! 🙂


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.