Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Smartlist Builder: How to create calculated columns based on a User Category Value for certain Inventory Items

Posted on by Microsoft Employee

Create a Smartlist with different columns based on a certain User Category Value. Cannot find = in Mathematical function or IF calculation to use a search criteria.

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Smartlist Builder: How to create calculated columns based on a User Category Value for certain Inventory Items

    Thanks Mike. You helped me a lot. Only one more question: which Field Description I have to use in "WHEN"?? From SmartList Builder or the SQL Table Description???

  • Verified answer
    Mike Smith Profile Picture
    Mike Smith 6,840 on at
    Re: Smartlist Builder: How to create calculated columns based on a User Category Value for certain Inventory Items

    If I'm following you correctly, you would have to set-up multiple columns (calculated fields) per analysis.

    If you have a User Category = Style with values Long Sleeve and Short Sleeve, you would need Calculated field "UC1Short" and "UC1Long" (any name).  Then establish the Case statement for each:

    UC1Long:

    CASE

    WHEN GPUserCategoryField = "Long Sleeve" THEN "Yes"

    ELSE "No"

    END

    UC2Short:

    CASE

    WHEN GPUserCategoryField = "Short Sleeve" THEN "Yes"

    ELSE "No"

    END

    This would return a data set like:

    ITEM               UC1Long               UC1Short

    ShortTShirt    No                           Yes

    LongTShirt    Yes                          No

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans