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
Anonymous
Not applicable

Assigning Data According to Position in Table

Hello all,

 

I'm having an issue transforming a table that is set up for humans to read, not computers. Unfortunately, I do not control this spreadsheet and cannot change the way it is arranged. I've modified the data to look the the first table in the picture, but I'm having trouble figuring out how to get to the form in the second table (highlighted in yellow). I am confident in my ability to move from step 2 to steps 3 and 4, but need help getting from step 1 to step 2. Is this transformation possible? There is no other unique information to tie these records together.

 

holliebollie_0-1663948263854.png

 

I would greatly appreciate your help. Thanks!

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Yes, in Power Query, simply use the Fill Down feature. Right click on that column and select Fill, Fill Down.

 

edhans_0-1663948893716.png

Note that the cells must be null, not just blanks. If they are blank, before you do the fill down, select the column, right-click and Replace, leave the first block blank, and type the word null in the second.

edhans_1-1663948976974.png

 

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

Yes, in Power Query, simply use the Fill Down feature. Right click on that column and select Fill, Fill Down.

 

edhans_0-1663948893716.png

Note that the cells must be null, not just blanks. If they are blank, before you do the fill down, select the column, right-click and Replace, leave the first block blank, and type the word null in the second.

edhans_1-1663948976974.png

 

 

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.

Top Solution Authors
Top Kudoed Authors