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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

merging into new file

Hi, I have a file with 4 columns:

A  B  C  D  (all number)

1  2  3  4

5  6  7  8

What I want is 1 column (in a new file) with all values under eachother:

X

1

2

3

4

5

6

7

8

 

Is this possible in Power Query? (Or mayby DAX?). Thank you.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

 

Please try this:
First of all, I create a set of sample:

vzhengdxumsft_0-1710207330294.png

Then click the Transform data in the home pane:

vzhengdxumsft_1-1710207395919.png

Then choose all the columns and click the unpivot Columns in transform pane:

vzhengdxumsft_2-1710207435771.png

The result is as follow:

vzhengdxumsft_3-1710207540899.png

Then click close&apply

 

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.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thanks for your help, it was the solution. I couldn't do it first, because of the NULL values in some of the rows. After filtering these, your solution worked.

Anonymous
Not applicable

Thanks for your help. Indeed it's working with a trstfile like the one you described. But when I do the same steps on my file (more then 30 columns, but I try to merge 4 of these), an unexpected error opccured. But what the error is, I don't know.

Tigo1962_0-1710688250508.png

 

Anonymous
Not applicable

Hi @Anonymous 

 

Could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

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.

Anonymous
Not applicable

Hi @Anonymous 

 

Please try this:
First of all, I create a set of sample:

vzhengdxumsft_0-1710207330294.png

Then click the Transform data in the home pane:

vzhengdxumsft_1-1710207395919.png

Then choose all the columns and click the unpivot Columns in transform pane:

vzhengdxumsft_2-1710207435771.png

The result is as follow:

vzhengdxumsft_3-1710207540899.png

Then click close&apply

 

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.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors