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 CRM (Archived)

Display custom field on report

(0) ShareShare
ReportReport
Posted on by

Dear all,

In an Invoice form I have a list box selection filled which are filled in with CODES like :

AFD
FGDS
FD545
ERT89

each code is linked with a specific text string to be display on report

For example if user select items code "ERT89", then I should display on report text : "VAT expemted on export delivery". if user select an other code it will be another text.

How can I display corresponding text based on selection ?

regards

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Display custom field on report

    Switch command work nicely.

    Thanks to all of you

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at
    RE: Display custom field on report

    Hi Sergec,

    Do you mean in the SSRS?

    You need to use expression IIF

    for example:

    =IIF(Fields!fieldselection.Value >= "ERT89", "VAT", IIF(Fields!fieldselection.Value = "fieldselection", "VAT2", "NOVALUE"))

    Or Switch Case

    For example:

    =SWITCH(Fields!fieldselection.Value = "ERT89", "VAT",

    Fields!fieldselection.Value = "AFD", "VAT2",

    Fields!fieldselection.Value = "FGDS", "VAT3",

    Fields!fieldselection.Value = "AAAAS", "VAT4",

    Fields!fieldselection.Value = "ABCDHigh", "VAT5")

    And put in to the display text value expression.

    Are you referring to that expression?

  • Verified answer
    Mamatha Swamy Profile Picture
    5,426 on at
    RE: Display custom field on report

    You can use a 'Switch' function in SSRS Expression to display text related to the code

    Refer http://weblogs.sqlteam.com/joew/archive/2008/08/20/60693.aspx

  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at
    RE: Display custom field on report

    Hello Sergec,

    Yes, this is possible, via an expression in the SSRS report. Please refer to: msdn.microsoft.com/.../ms157328.aspx

    Decision Functions

    The Iif function returns one of two values depending on whether the expression is true or not. The following expression uses the Iif function to return a Boolean value of True if the value of LineTotal exceeds 100. Otherwise it returns False:

    Use multiple IIF functions (also known as "nested IIFs") to return one of three  values depending on the value of PctComplete. The following expression can be placed in the fill color of a text box to change the background color depending on the value in the text box.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans