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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
wherdzik
Helper III
Helper III

Unstructured Table - Take Name from Row and Put on new column and individual Rows

Hi All, This seems pretty challenging and not sure if its doable but I know this is the place to bring up this issue. 

I am not sure I can change the source data so this is what I have to work with.  I have a file that I pull from a vendor which has 11 columns indicating schedule details.  Each section is for a specific person.  I would like to come up with some sort of a process that I can paste an updated data pull each month and then have PowerQuery create a new column with the persons name on each row, related to that data set.  So if you open up my sample file the first section is related to Peck, Stevens on line 7.  I would like to add a column with a header name and then have Peck Stevens on each row starting on line 9 until it reaches the next data section which is Dean, James.  This would be repeated until all data set has a name on each row related to their respective section.

 

I dont know how to attach the PBIX to here otherwise I would add it here so you can play with the actual sample data.

wherdzik_0-1701275535663.png

 

1 ACCEPTED SOLUTION
slorin
Super User
Super User

Hi,

Add new column

if Text.Contains([YourColumn],",") then [YourColumn] else null

and fill down

 

Stéphane 

View solution in original post

2 REPLIES 2
wherdzik
Helper III
Helper III

Got it to work. Thank you.

slorin
Super User
Super User

Hi,

Add new column

if Text.Contains([YourColumn],",") then [YourColumn] else null

and fill down

 

Stéphane 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors