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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MikeHunt
Regular Visitor

Create a End date column based on Created date column

Hello everyone,

I have a Created date column in my Power BI data. Now, I need a formula that will create an End date column that filters per Code and shows the Created date value of next row if not balnk. Example shown below.

 

MikeHunt_0-1710925327746.png

 

1 ACCEPTED SOLUTION
Rohit11
Resolver I
Resolver I

Try this ! 

 

End = MINX (
    FILTER (
        'Table',
        'Table'[Create] > EARLIER (   'Table'[Create]  )
            && 'Table'[Code] = EARLIER ( 'Table'[Code] )
    ),
     'Table'[Create]
)

Rohit11_0-1710927568096.png

 

Mark as ansered if it solved your problem . 

 

View solution in original post

1 REPLY 1
Rohit11
Resolver I
Resolver I

Try this ! 

 

End = MINX (
    FILTER (
        'Table',
        'Table'[Create] > EARLIER (   'Table'[Create]  )
            && 'Table'[Code] = EARLIER ( 'Table'[Code] )
    ),
     'Table'[Create]
)

Rohit11_0-1710927568096.png

 

Mark as ansered if it solved your problem . 

 

Helpful resources

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

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.