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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Oliehoek
Frequent Visitor

Convert a cell into a column entry in power query

Hi,

 

I am uploading data from daily spreadsheets and the sheet has several tables in them. The first cell of the table is giving me the area the table is referring to and then the data, below this table the same is repeated several times. I would like to take that fist cell (for each table) and put it repeatedly in front or behind the table. How do I do this in Query to clean up my dataset?

 

Example

Area 1   
 Result 1Result 2Result 3
Input 1   
Input 2   
input 3   

 

   

Area 2

   
 Result 1Result 2Result 3
Input 1   
Input 2   
input 3   

 

   

Area 3

   
 Result 1Result 2Result 3
Input 1   
Input 2   
input 3   

 

To be transferred to

     
  Result 1Result 2Result 3
Area 1Input 1   
Area 1Input 2   
Area 1input 3   

 

 

   

 

 

   
  Result 1Result 2Result 3
Area 2Input 1   
Area 2Input 2   
Area 2input 3   

 

 

   
     
  Result 1Result 2Result 3
Area 3Input 1   
Area 3Input 2   
Area 3input 3   

 

In excel I would to IF(LEFT(B2)="Area", B2, A1), to copy the text above if the text does not contain Area, but I have no clue how to do this in Query.

 

Additionally I would consequently clear all rows without data. Would this then make the formula invalid?

2 ACCEPTED SOLUTIONS
serpiva64
Solution Sage
Solution Sage

Hi,

You can obtain this result with the steps of the attached file

serpiva64_0-1675260274944.png

Then it is not so clear for me what you need next.

If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!

 

View solution in original post

Thanks!

It is the "Fill > Down" option that I was not aware of.

View solution in original post

2 REPLIES 2
serpiva64
Solution Sage
Solution Sage

Hi,

You can obtain this result with the steps of the attached file

serpiva64_0-1675260274944.png

Then it is not so clear for me what you need next.

If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!

 

Thanks!

It is the "Fill > Down" option that I was not aware of.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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