Skip to main content
 I want an opportunity report to show stoplight gifs in the "Status" column instead of the word "Red" "Yellow" or "Green"

 

1. I created a new opportunity picklist field called "Status" with picklist values "Red, Yellow, Green"

 

2. I added the following formula to the "Status" field and get the following error

 

How can I add a stoplight status icon to a report?

 

How do I fix this?

 

Thanks!
4 answers
  1. Jun 10, 2017, 3:55 PM
    David, you cannot write a formula like that in the field definition itself

    . What you instead need to do is create a new custom formula field as explained below:

    • Data Type: Formula
    • Return Type: Text
    • Formula:

    IMAGE(

    CASE(

    Status__c,

    "Green", "/img/samples/light_green.gif",

    "Yellow", "/img/samples/light_yellow.gif",

    "Red", "/img/samples/light_red.gif",

    "/s.gif"),

    "Status color"

    )

     

    Now add this field to the Report and you should get what you need.

     

    That's it!
0/9000