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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
AmitSaini
Helper I
Helper I

How to get Next available date in calculate column

Hi Community Member,

Need your help to get some output.

Below is the detailed explanation and what result we need to get.

My actual data set is like below:- 

 

AmitSaini_0-1733726370741.png

 

and based on the above dataset and I need to create one calcualted column [AvailableDate] just like below image,

In this column, if dates column is blank then it should consider next available date as you can see in the below pic.

 

AmitSaini_1-1733726489082.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @AmitSaini ,

 

You can try this.

AvailableDate = 
VAR CurrentDate = 'Table'[Dates]
VAR NextDate = 
    CALCULATE(
        MIN('Table'[Dates]),
        FILTER(
            'Table',
            'Table'[Dates] <> BLANK() && 'Table'[ChangedDate] > EARLIER('Table'[ChangedDate])
        )
    )
RETURN
    IF(
        ISBLANK(CurrentDate),
        NextDate,
        CurrentDate
    )

vkaiyuemsft_0-1733794107960.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @AmitSaini ,

 

You can try this.

AvailableDate = 
VAR CurrentDate = 'Table'[Dates]
VAR NextDate = 
    CALCULATE(
        MIN('Table'[Dates]),
        FILTER(
            'Table',
            'Table'[Dates] <> BLANK() && 'Table'[ChangedDate] > EARLIER('Table'[ChangedDate])
        )
    )
RETURN
    IF(
        ISBLANK(CurrentDate),
        NextDate,
        CurrentDate
    )

vkaiyuemsft_0-1733794107960.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

Hi @Anonymous ,

Thanks for the solution. it works really well. Appreciate it.

dharmendars007
Super User
Super User

Hello @AmitSaini , 

 

Can you please try the below code ?

 

AvailableDate =
VAR CurrentRowDate = TableName[Dates]
VAR NextAvailableDate =
CALCULATE(
MIN(TableName[Dates]),
TableName[Dates] > CurrentRowDate
)
RETURN
IF(ISBLANK(CurrentRowDate), NextAvailableDate, CurrentRowDate)

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Hi @dharmendars007 ,

Thanks for the reply.

tried your code and it doesn't work. still giving the blank dates in available date column. See below pic.

 

AmitSaini_0-1733735827758.png

 

 

wdx223_Daniel
Super User
Super User

AvailableDate=MAXX(FILTER(Table,Table[ID]=EARLIER(Table[ID])&&Table[Estimate]=EARLIER(Table[Estimate])&&Table[ChangeDate]>=EARLIER(Table[ChangeDate])),Table[Dates])

Hi wdx223_Daniel,

Thanks for your reply.

I used the code suggest by you but it doesn't work.

see below output screenshot.

AmitSaini_0-1733728480481.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.