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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
wolfy_
Helper I
Helper I

Put column under each other

Hi, is there a way to put 2 columns in the same data set under each other?
I explain, I have a data output that is like:

Columm1Columm2Columm3Columm4
DATA1,1DATA1,2DATA2,1DATA2,2
DATA1,3DATA1,4DATA2,3DATA2,4
DATA1,5DATA1,6DATA2,5DATA2,6
DATA1,7DATA1,8DATA2,7DATA2,8
DATA1,9DATA1,10DATAT2,9DATA2,10

 

And would like to pute Columm2 under Collum1 and Columm4 under Columm3

Columm1Columm3
DATA1,1DATA2,1
DATA1,3DATA2,3
DATA1,5DATA2,5
DATA1,7DATA2,7
DATA1,9DATAT2,9
DATA1,2DATA2,2
DATA1,4DATA2,4
DATA1,6DATA2,6
DATA1,8DATA2,8
DATA1,10DATA2,10

 

Thanks

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@wolfy_  Please try this as a New Table

 

Test291Out = UNION(SELECTCOLUMNS(Test291UnPivot,"Column1",Test291UnPivot[Column1],"Column3",Test291UnPivot[Column3])
                  ,SELECTCOLUMNS(Test291UnPivot,"Column2",Test291UnPivot[Column2],"Column4",Test291UnPivot[Column4]))

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

1 REPLY 1
PattemManohar
Community Champion
Community Champion

@wolfy_  Please try this as a New Table

 

Test291Out = UNION(SELECTCOLUMNS(Test291UnPivot,"Column1",Test291UnPivot[Column1],"Column3",Test291UnPivot[Column3])
                  ,SELECTCOLUMNS(Test291UnPivot,"Column2",Test291UnPivot[Column2],"Column4",Test291UnPivot[Column4]))

image.png





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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