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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Gresi
Frequent Visitor

Get value of next incidence of pallet with specific operation

Hi everybody,

 

i'm really new to Power Bi.

I've a table with different entries of pallets.

The pallets arrive at stations and leave stations.

For example:

 

Pallet 006 arrived at station on 01.07.2019 15:46:24,

it leaves the station same day at 15:57:58.

 

Table.JPG

 

How could i achieve that the end-value of the rows with operation ArrivedAtStation becomes the start-value of the next row where the pallet has left the station.

 

It would be nice if someone could help me.

 

thx, Gresi

 

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Gresi 

 

Try this as calc column

 

End =
MINX (
    TOPN (
        1,
        FILTER (
            YourTableName,
            [pallet] = EARLIER ( [pallet] )
                && [start] > EARLIER ( [start] )
        ),
        [start], ASC
    ),
    [Start]
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Gresi 

 

Try this as calc column

 

End =
MINX (
    TOPN (
        1,
        FILTER (
            YourTableName,
            [pallet] = EARLIER ( [pallet] )
                && [start] > EARLIER ( [start] )
        ),
        [start], ASC
    ),
    [Start]
)

Hi,

 

thanks for the fast answer !

I've solved it already.

 

thx, Gresi

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors