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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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