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
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
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.