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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
al72
New Member

Insert left below name in PQ

Hi,

 

When I extract employees timesheet data from our ERP,  I got something like this (fictive data):

al72_0-1721743830762.png

In order to use the data, I have to insert cells below each employee name, left of each "activity" type. Then fill down the names and delete the empty rows and initial name rows in order to obtain this:

al72_1-1721744099156.png

 

Its easy to do for data sets with a few employees but gets tedious when I got dozens of employees. Hence, I am looking for a clean way to do this with PQ, meaning the least steps possible. Column from example doensn't work since PQ can't make the difference between a name and an "activity" type. What is your take on this?

 

Thank in advance!

 

Al

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Add a custom column in Power Query saying something like:

if the3rdcolumn is blank/empty then the1stcolumn else null

then do a Fill Down on the new column

View solution in original post

3 REPLIES 3
HotChilli
Super User
Super User

Add a custom column in Power Query saying something like:

if the3rdcolumn is blank/empty then the1stcolumn else null

then do a Fill Down on the new column

Perfect solution! thank you so much 🙂

 

Al

Anonymous
Not applicable

Hi @al72 

It is glad that your problem has beed solved, and if the solution @HotChilli  offered helped you, you can consider to mark it as a solution for more user to refer to.

 

 

Best Regards!

Yolo Zhu

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors