Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Calculated Field Showing as Negative Value

(0) ShareShare
ReportReport
Posted on by 10

Hello there, 

I've just created a calculated field which will count days that an Opportunity record is active. This field is called Lifespan. So each day the value should grow +1. 

The behaviour is set as below. This somewhat works as each day the value changes, however the value is decreasing. ie. The day its created the value is 0, the next day is -1, then -2 etc.

pastedimage1674035049187v1.png

I'd like this field to increase daily rather than decrease. I tried changing the order of the the Action to DIFFINDAYS(createdon,NOW()), but this gives an error due to the data types. Would appreciate any advice on this.

Thanks,

Harry

  • Suggested answer
    Harry Stover Profile Picture
    Harry Stover 10 on at
    RE: Calculated Field Showing as Negative Value

    Hi Pradeep,

    Thanks for this. I was attempting this yesterday and was getting an error due to the data types. It seems to be working as intended now.

    Thank you very much for the speedy response!

    Harry

  • Verified answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,480 Super User 2024 Season 2 on at
    RE: Calculated Field Showing as Negative Value

    Hi Harry,

    I tried with below condition and it is working for me.

    pastedimage1674036387353v2.png

    Output:

    pastedimage1674036352542v1.png


Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans