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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Power Query transformation - Append columns within ONE query

Hi there,

I have data organised a bit like this - I just want to take the last three columns and place them directly underneath the first three, like this...

 

PQ HELP.PNG
Though  I don't want to create two seperate queries and append them! For the real life problem this would mean creating a  huge amount of individual queries

 

Any ideas most appreciated! 🙂

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , see if approach of this blog can help

https://kohera.be/blog/power-bi/how-to-unpivot-twice/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

I have a simple method, just duplicate a table, delete the merged rows in the corresponding table, change the name, and append queries.

Like this:1.gif

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

Hello! I have a problem in data visualization, which I would like to see if they would know how to help me. I joined the tables as Janey did: let's imagine that I have two columns that are the ones that interest me for my table: Module the first, where there are different modules that are the ones that I appended from different tables and STATUS that is the status they carry, it can be completed, approved, on hold.. and so on. My problem is that when I make the table, I get blank values that I can't convert to 0. My table has rows to Module "ec", "comp", "lms" and columns to my states "completed", "approved", "on hold" and values generate a measure that is:
calculate(counta("annex"[status])) +0. And the most zero doesn't work for me! It continues to show blank values in the table. And this happens to me because I don't have a status for certain modules. So in the database this would give you BLANK. Help please!!


amitchandak
Super User
Super User

@Anonymous , see if approach of this blog can help

https://kohera.be/blog/power-bi/how-to-unpivot-twice/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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