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
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors