web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Calculated Field in Smartlist builder

(0) ShareShare
ReportReport
Posted on by 35

When I add a Calculated field in smarlist builder.  Set my Field Name as Inks, Field Type as string.  Then the Calculation as 

CASE WHEN {Order Form:# Inks} = 0 THEN ''
ELSE CONVERT (CHAR(3),{Order Form:# Inks})
END

The SQL Code is validated, but when I run the smartlist, I get all blanks all the time.  

*This post is locked for comments

I have the same question (0)
  • L Vail Profile Picture
    65,271 on at
    RE: Calculated Field in Smartlist builder

    Hi,

    What table are you using in your calculation? Are you using the calculated field in the formula? Where are you setting its value. I'm probably not getting this, but it looks like you test the value of the calculated field first. It will always be 0 if you haven't set a value. Would you please give a little more information on what you are trying to accomplish and against which table you are running this.

    Kind regards,

    Leslie

  • Verified answer
    NERFANVIL Profile Picture
    35 on at
    RE: Calculated Field in Smartlist builder

    Hi,

    I figured it out.  I guess it wanted a decimal to compare to?!?  

    CASE WHEN {Order Form:#Inks} = 0.00000 THEN ''

              ELSE CAST( CAST({Order Form:#Inks}  AS INT) AS VARCHAR(3))

    END

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans