Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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:-
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.
Solved! Go to Solution.
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
)
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 @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
)
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.
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
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.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |