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.
Hello, I created column formula called "Date3" to replace with date field in the other columns. Every line went well give the correct results but on line 6 I used "AND" & "BLANK() to check two date fields if both are blank, it should return modified date. But it's empty. Here is the formula:
Could you kindly advise what wrong in the formula ?
Solved! Go to Solution.
Hi @NipawanV ,
I have a test by your code, I and I could reproduce your problem. I think your issue should be caused that your conditional statement will go [Due Date (scheduledend)] = BLANK(), [Actual End Date] firstly, then it will return blank , there is something wrong in your And() function.
Try this code.
Date3 =
IF (
AND ( [Due Date (scheduledend)] = BLANK (), [Actual End Date] = BLANK () ),
activitypointers[modifiedon],
IF (
[Due Date (scheduledend)] = BLANK (),
[Actual End Date],
IF (
[Actual End Date] = BLANK (),
[Due Date (scheduledend)],
[Actual End Date]
)
)
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@amitchandak Many thanks but it doesn't work. Apply the said line it doesn't show the result from line 7 as well. Line 7 in my formula if "Actual End Date" and "Activity Due Date " should pickup the result from "Actual End Date". Now it's disappear.
See result in Date4 that applied your formula. (I used "created on" for the time being as it's the text field. coalesce() doesn't allow me to use "modified on" which is the date field.) it doesn't return any date at all.
Any more hints, please!!
Hi @NipawanV ,
I have a test by your code, I and I could reproduce your problem. I think your issue should be caused that your conditional statement will go [Due Date (scheduledend)] = BLANK(), [Actual End Date] firstly, then it will return blank , there is something wrong in your And() function.
Try this code.
Date3 =
IF (
AND ( [Due Date (scheduledend)] = BLANK (), [Actual End Date] = BLANK () ),
activitypointers[modifiedon],
IF (
[Due Date (scheduledend)] = BLANK (),
[Actual End Date],
IF (
[Actual End Date] = BLANK (),
[Due Date (scheduledend)],
[Actual End Date]
)
)
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Rico,
Many thanks indeed for the solution. This is perfectly working well.
With best regards,
Nipawan
Hello Rico,
many thanks for the revised code. i will run when i return to work next month 🙂
WBR, Nipawan
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 |
---|---|
11 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |