cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tejapowerbi123
Helper IV
Helper IV

Transpose or Unpivot Column?

Hello Community,
Please review the below,
Can anyone suggest to me how to do it?
I have tried Transpose and Unpivot Column in Power Query but did not get the expected result.
What do I want to do?
Column A,
I am looking for a separate count for 1,2,3,4,5
count "1" in column A=2
count "2" in column A=1

Raw Data
ABCDE
12354
55254
44211
32415
12534
54321
21435

 



Final Result
 12345
A21112
B13021
C02221
D21200
E20032



1 ACCEPTED SOLUTION
CNENFRNL
Super User III
Super User III

Simply add an index column before unpivoting the dataset,

Screenshot 2021-05-06 200850.png

Then, counting is easy,

Screenshot 2021-05-06 201215.png

View solution in original post

1 REPLY 1
CNENFRNL
Super User III
Super User III

Simply add an index column before unpivoting the dataset,

Screenshot 2021-05-06 200850.png

Then, counting is easy,

Screenshot 2021-05-06 201215.png

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors