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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Riri69
Regular Visitor

Look up value from other row of same table

I am trying to populate a column value in a report from the column in the next row.

 

The below are the entries in my Tasks table so Ann completes the first task and re-assigns the case to Brendan, then Brendan completes the next task and re-assigns the case to Tom.  The person it's re-assigned to is only visible once the next task is created hence the value is in the next row.

Riri69_0-1730904323537.png

 

For Row 1 'Reassigned To' = 'Reassigned By' in Row 2.

For Row 2 'Reassigned To' = 'Reassigned By' in Row 3.

 

Any ideas on how I can get this to work, please?

 

 

 

2 ACCEPTED SOLUTIONS
AlienSx
Super User
Super User

a = Table.ToColumns(Source)

b = a & { List.Skip( List.Last( a ) ) & { null } }

c = Table.FromColumns(b, Table.ColumnNames(Source) & {"Reassigned To"})

View solution in original post

blank one. And don't forget about let and in

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Riri69 ,

Thanks for AlienSx's reply!
And @Riri69 , Have you solved your problem? If solved please mark the reply in this post which you think is helpful as a solution to help more others facing the same problem to find a solution quickly, thank you very much!

Best Regards,
Dino Tao

Omid_Motamedise
Super User
Super User

You can also use Table.SelectRows

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
AlienSx
Super User
Super User

a = Table.ToColumns(Source)

b = a & { List.Skip( List.Last( a ) ) & { null } }

c = Table.FromColumns(b, Table.ColumnNames(Source) & {"Reassigned To"})

Thank you for this.

Do I need to create a Custom Column or Blank Query?

blank one. And don't forget about let and in

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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