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
Jaime123
Regular Visitor

Sum values from different columns based on row data

Hi all,

I am trying to create a new table where I can summarize all activities by "owner", the problem I am having is that activities are listed in different columns in the original table. Here is an example of the original table:

 

NameEmailsSurveysVideos
John240
Mary131
Paul043
Mark311
John311
Mary300
Paul132
Mark001

 

And here is the table I am trying to create:

NameActivityCount
JohnEmails5
MaryEmails4
PaulEmails1
MarkEmails3
JohnSurveys5
MarySurveys3
PaulSurveys7
MarkSurveys1
JohnVideos1
MaryVideos1
PaulVideos5
MarkVideos2

 

I will appreciate any help to create the new table, or any ideas on how to create the new table.

 

Regards.

J

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

Seems a straightforward unpivot of everything but the name, then group by the name/old column headers task in Power Query

View solution in original post

1 REPLY 1
jthomson
Solution Sage
Solution Sage

Seems a straightforward unpivot of everything but the name, then group by the name/old column headers task in Power Query

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.