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

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

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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