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 August 31st. Request your voucher.

Reply
Jess123
New Member

Look for a specific key in subsequent rows - calculated columns

Hi,

 

I am having a hard time doing a calculated column that needs to, for each row, look for the next row that contains the same "ObjectKey" in the earliest timespan, and then do the current "Value of interest" - previous "Value of interest"

 

Example below:

In position [A] of the calculated column, we do Value of interest (1881598) - Value of interest (165108), because this is the next row with the same object key.

I've tried using the EARLIER function or simple variables with Calculate and filters, but it did not succeed.

Jess123_1-1648152198694.png

 

 

2 ACCEPTED SOLUTIONS
Whitewater100
Solution Sage
Solution Sage

Hi:

Can you share the data? Thanks

View solution in original post

4 REPLIES 4
Jess123
New Member

Hi, please find the dataset sample attached (I could not manage to attach the pbix file)

 

dataset dax issue.xlsx

Thanks! It worked

Whitewater100
Solution Sage
Solution Sage

Hi:

Can you share the data? Thanks

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.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.