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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Tigo1962
Frequent Visitor

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
v-zhengdxu-msft
Community Support
Community Support

Hi @Tigo1962 

 

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
Tigo1962
Frequent Visitor

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.

Tigo1962
Frequent Visitor

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

 

Hi @Tigo1962 

 

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.

v-zhengdxu-msft
Community Support
Community Support

Hi @Tigo1962 

 

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.