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

Announcements

No record found.

News and Announcements icon
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)
  • Suggested answer
    Magor Kovacs Profile Picture
    1,835 on at

    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.

  • Verified answer
    Mamatha Swamy Profile Picture
    5,426 on at

    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

  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at

    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?

  • Community Member Profile Picture
    on at

    Switch command work nicely.

    Thanks to all of you

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
NeerajPawar Profile Picture

NeerajPawar 2

#2
jlattimer Profile Picture

jlattimer 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans