Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Need to have the following SSRS expression results to show just a number

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

The following is a calculation of days in an SSRS report.  It is showing the correct days but with the time stamp of 00:00:00 after it.

What can I do to make it show just the number of days?  Thanks,

=(iif(Fields!RMDTYPAL.Value<=6,Parameters!I_dAgingDate.Value,0))-Fields!DUEDATE.Value

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Need to have the following SSRS expression results to show just a number

    Yes, but received this error and I am just getting started learning how to modify SSRS  and not sure how to do the declare.

    The Value expression for the testrun 'Textox 560,Paragraphs(0), TextRuns(0);

    contains an error:  [BC30451] Name 'D' is not declared.

  • Mike Smith Profile Picture
    Mike Smith 6,840 on at
    Re: Need to have the following SSRS expression results to show just a number

    Did you attempt the DATEDIFF formula?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Need to have the following SSRS expression results to show just a number

    I tried changing it in the number and the date, but it did not change anything.  Any other ideas?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Need to have the following SSRS expression results to show just a number

    You should be able to go into the properties of that particular field from inside the designer and format the field to show just the number.

    Regards

    Aaron

  • Mike Smith Profile Picture
    Mike Smith 6,840 on at
    Re: Need to have the following SSRS expression results to show just a number

    Try exploring the DATEDIFF function:

    www.w3schools.com/.../func_datediff.asp

    Should probably look something like this (sorry, didn't test):

    =DATEDIFF(D,(iif(Fields!RMDTYPAL.Value<=6,Parameters!I_dAgingDate.Value,0),Fields!DUEDATE.Value)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans