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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
analyst123
Frequent Visitor

Getting previous row based on criteria

My dataset contains time stamps, item codes and a user. 

 

analyst123_0-1728311085763.png

 

What I am trying to do is add a new column called 'last user' which shows me based on the time stamp and item code, the last user who was associated with the item code. What this would look like is:

analyst123_1-1728311427365.png

Can someone please help me with how I can do this trasnformation in power BI?

 

1 ACCEPTED SOLUTION
dharmendars007
Super User
Super User

Hello @analyst123 , 

 

Please try this approach to get the desired calculated column..

 

dharmendars007_0-1728312393528.png

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

1 REPLY 1
dharmendars007
Super User
Super User

Hello @analyst123 , 

 

Please try this approach to get the desired calculated column..

 

dharmendars007_0-1728312393528.png

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

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.