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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.