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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
alanarodriguez_
New Member

How can i merge columns but not rows?

i got 16 columns to with the same data, i need to merge them, to be able to group by and count such data, but i dont seem to find the right way to do it without affecting the amount of rows. 

 

alanarodriguez__0-1722560710162.png

 

See? the same type of data, and categories and everything, i would only need to put it in a column without merging each individual row 

 

4 REPLIES 4
Ray_Minds
Continued Contributor
Continued Contributor

Hi @alanarodriguez_ 
Please follow below steps
1. Click on Transforrm Data
2. Click on the Transform Tab
3. Select those columns which you want with CTRL + Click
4. Click on the Unpivot only selected column from Unpivot Column drop down
5. Select the column and GroupBy Using Groupby Tab from the Ribon or Right Click on the column which you want to count and click on the GroupBy.
6. Remove the unnecessary columns
7. Close and Apply and Save .

If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.

Anonymous
Not applicable

Hi @alanarodriguez_ 

 

Could you tell me if your problem has been solved?

If it is, kindly Accept it as the solution. More people will benefit from it.

Or you are still confused about it, please provide me with more details about your problem.

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

First and foremost, share data in a format that can be pasted in an MS Excel file.  On that sample data, show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@alanarodriguez_ , On the way is to unpivot the columns, That will bring all the data under one column. But rows will increase. We usually add an index column before unpivot to make sure we are able to correct calculation using index column later

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.