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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
njxfoster
Helper I
Helper I

Replace empty record with current date

Hi Guys,

njxfoster_0-1643325333927.png

 

 

I am creating a speed to lead column by using Formula ( First Contact - Adjusted Created Time)

 

However there are some users who doesn't have first contact yet, so the record will be empty. and result will become-64100000.00

 

 I want to set these empty record to current date so after calculation it can become an aging indicator

 

How can I replace these empty First Contact with current date without affecting other records?

1 ACCEPTED SOLUTION

Hi @njxfoster 

 

Try this:

speed to lead =
VAR _D =
    IF ( ISBLANK ( [First Contact] ), NOW(), [First Contact] )
RETURN
   DATEDIFF([Adjusted Created Time], _D, MINUTE )

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

4 REPLIES 4
v-cazheng-msft
Community Support
Community Support

Hi @njxfoster 

 

May I know whether your issue has been resolved? If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. Thanks in advance!

 

Best Regards,

Community Support Team _ Caiyun

 

If you still have problems on it, please feel free to let us know. Thanks a lot!

VahidDM
Super User
Super User

Hi @njxfoster 

 

speed to lead =
VAR _D =
    IF ( ISBLANK ( [First Contact] ), TODAY (), [First Contact] )
RETURN
    _D - [Adjusted Created Time]

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Hi @VahidDM 

 

Thank you for your answer!

 

njxfoster_1-1643385950065.png

 

 

I have trouble running your DAX. The date comes out wicked. How can I solve this problem?

 

 

 

 

Hi @njxfoster 

 

Try this:

speed to lead =
VAR _D =
    IF ( ISBLANK ( [First Contact] ), NOW(), [First Contact] )
RETURN
   DATEDIFF([Adjusted Created Time], _D, MINUTE )

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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