Skip to content
SUPERDRIVE 每
  • Home
  • Services
    • B2B Salesforce Marketing Automation
    • B2C Salesforce Marketing Automation
    • Demand Generation
    • Performance Marketing
  • About
  • Blog
  • Resource Centre
    • Case Studies
    • White Papers
  • Free Consultation
  • English
    • 日本語
Articles, Marketing Cloud Account Engagement, Pardot, Sales Cloud

Display Lead Score and Lead Grade as star ratings in Salesforce

Display Lead Score and Lead Grade as star ratings
SUPERDRIVE
January 31, 2023

A blended approach that combines Pardot Lead scoring and Lead grading can save sales teams time and effort in understanding who the hottest leads are, who to approach first, and how to frame their conversations when doing so.

Scoring and grading are both useful, but without context, they are not very useful for sales. Additionally, having both a score and a grade is hard to understand for sales reps, and can lead to more confusion than benefit.

So, while it is still recommended to use a blended scoring/grading model, we recommend simplifying it by replacing scores and grades with a 1 to 5 star rating systems, where the best leads have 5/5 stars and the worst leads have 1/5 stars.

Today we will show you how to set this up using Salesforce formula fields and display this information simply and visually in Salesforce page layouts, list views and reports (Oh, and if stars are not your thing, you can use any image you want instead!)

What is a Blended Scoring/Grading Model?

First, let’s go over how scoring and grading works in Pardot.

Pardot lead scoring is a way to prioritize leads based on their level of engagement and potential fit for a product or service. Points are assigned when a prospect clicks an email, visits a webpage, fills out a form etc. and the total score indicates how engaged a prospect is with a brand.

Pardot Lead grading looks at what we know about a prospect (ie industry, department, compay size) and determines if they are a good fit to be a potential customer. Grades range from “A” to “D”, so If someone matches our criteria for a good target customer, they would get an “A” grade. If someone does not match at all, tehy would get a “D” grade.

Pardot recommends a blended approach where scoring and grading are used together. By looking at both together, sales can get more context about both how engaged the prospect is, as well as how well they fit a company’s vision of what a good potential target customer may be.

Now that we have our definitions in place, let’s go over how to set up a simple but custom blended scoring/grading model that utilizes a simple 1-5 star rating system to keep things as easy to understand as possible.

Customize and Automate lead scoring and grading

Before diving into the star rating system itself, you will need to make sure your scoring and grading is customized and automated.

Salesforce has some good help articles on this, so follow the links below to get started. Of course you can also contact us if you want our help in setting this up for you.

Customize out of the box Lead Scoring in Pardot:
https://help.salesforce.com/s/articleView?id=sf.pardot_leadqual_scoring.htm&type=5

Automate Lead Grading in Pardot:
https://trailhead.salesforce.com/content/learn/modules/pardot-lead-scoring-and-grading-lightning/use-grading-lightning

Of course, feel free to reach out to us if you want to have the pros do this for you instead 😉

Source your images

Now that we are ready to build, the first step will be to decide on what images to use.

We will use a 5 star system so will require 5 images, one for each star, or rating (1 star, 2 stars etc.). You can either use the default star icon set that comes within Salesforce, or make your own set. You can also use any other image as well, it does not have to be a star.

If you want to use Salesforce’s default set, you can skip this step and move on to the next step. However, if you would like to use your own custom images, simply source the images you want to use and then upload them to Pardot, Salesforce or your website, so that you have them hosted somewhere with a URL to link to.

Create Formula fields based on score and grade

Next, we will create trigger fields. These leads will summarize a score and a grade into a threshold, or range and give a result of 1,2,3,4 or 5.

In Salesforce, create a formula field with a “number” data type. Copy and paste this code:

IF( pi__score__c >200, 5,
IF( pi__score__c >100, 4,
IF( pi__score__c >50, 3,
IF( pi__score__c >0, 2,
1))))

In my example, if the score is bigger than 200, it will result in the number “5”. If the score is 101-199, it will result in the number “4” etc. Of course, feel free to modify those thresholds to whatever works best for you.

Next, do the same for scoring. Create another formula field with a “number” data type and copy and paste this code:

CASE( pi__grade__c ,
“A+”, 5,
“A”, 5,
“A-“, 4,
“B+”, 4,
“B”, 3,
“B-“, 3,
“C+”, 2,
“C”, 2,
“C-“, 2,
1)

This time, based on each letter grade, a number value between 1 to 5 is spit out.

Here is what my two fields look like:

Create Star Ratings Fields

Now that you have your images and your trigger fields, we can create another set of fields that will house our stars and be added to page layouts, reports and list views. These fields will be formula type fields that will display the star images.

5 Star rating scale based on score

To create a field that spits out star images based on score, create a formula field with data type text. If you are using custom images for your stars, copy and paste the following formula:

IF( Score_Threshhold__c =5, IMAGE(“YOUR 5 STAR IMAGE URL HERE“, “5”, 12, 75),
IF( Score_Threshhold__c =4, IMAGE(“YOUR 4 STAR IMAGE URL HERE“, “4”, 12, 75),
IF( Score_Threshhold__c =3, IMAGE(“YOUR 3 STAR IMAGE URL HERE“, “3”, 12, 75),
IF( Score_Threshhold__c =2, IMAGE(“YOUR 2 STAR IMAGE URL HERE“, “2”, 12, 75),
IMAGE(“YOUR 1 STAR IMAGE URL HERE“, “1”, 12, 75)))))

(Replace Score_Threshhold__c with the API name of your score threshold field you created in the previous step)

If you do not want to use custom images and want to use the default stars images from Salesforce, you can use the following formula instead and it will automatically generate the stars for you:

IF( Score_Threshhold__c =5, IMAGE(“/img/samples/stars_500.gif”, “5”, 12, 75),
IF( Score_Threshhold__c =4, IMAGE(“/img/samples/stars_400.gif”, “4”, 12, 75),
IF( Score_Threshhold__c =3, IMAGE(“/img/samples/stars_300.gif”, “3”, 12, 75),
IF( Score_Threshhold__c =2, IMAGE(“/img/samples/stars_200.gif”, “2”, 12, 75),
IMAGE(“/img/samples/stars_100.gif”, “1”, 12, 75)))))

(Replace Score_Threshhold__c with the API name of your score threshold field you created in the previous step)

Here is what my field looks like:

5 Star rating scale based on grade

To create a field that spits out stars based on grade, create a formula field with data type text. If you are using custom images for your stars, copy and paste the following formula:

IF( Grade_Threshhold__c =5, IMAGE(“YOUR 5 STAR IMAGE URL HERE“, “5”, 12, 75),
IF( Grade_Threshhold__c =4, IMAGE(“YOUR 4 STAR IMAGE URL HERE“, “4”, 12, 75),
IF( Grade_Threshhold__c =3, IMAGE(“YOUR 3 STAR IMAGE URL HERE“, “3”, 12, 75),
IF( Grade_Threshhold__c =2, IMAGE(“YOUR 2 STAR IMAGE URL HERE“, “2”, 12, 75),
IMAGE(“YOUR 1 STAR IMAGE URL HERE“, “1”, 12, 75)))))

(Replace Grade_Threshhold__c with the API name of your grade threshold field you created in the previous step)

If you do not want to use custom images and want to use the default stars images from Salesforce, you can use the following formula instead and it will automatically generate the stars for you:

IF( Grade_Threshhold__c =5, IMAGE(“/img/samples/stars_500.gif”, “5”, 12, 75),
IF( Grade_Threshhold__c =4, IMAGE(“/img/samples/stars_400.gif”, “4”, 12, 75),
IF( Grade_Threshhold__c =3, IMAGE(“/img/samples/stars_300.gif”, “3”, 12, 75),
IF( Grade_Threshhold__c =2, IMAGE(“/img/samples/stars_200.gif”, “2”, 12, 75),
IMAGE(“/img/samples/stars_100.gif”, “1”, 12, 75)))))

(Replace Grade_Threshhold__c with the API name of your grade threshold field you created in the previous step)

Here is what my field looks like:

5 Star rating scale based on a BLENDED scoring/grading model

Now we are ready to create our single field that blends score and grade and displays a star rating based on the blended score.

Before creating this field, you will need to decide on what all the combinations of score and grade are for 5, 4, 3, 2 or 1 stars. You can do this in a simple excel or google sheets diagram. Here is what mine looked like:Next, create a formula field with data type text and copy and paste the following formula:

IF( AND (Score_Threshhold__c > 1, Grade_Threshhold__c = 5), IMAGE(“YOUR 5 STAR IMAGE URL HERE“, “5”, 12, 75),
IF( OR (Grade_Threshhold__c = 5, AND (Score_Threshhold__c > 1, Grade_Threshhold__c = 4), AND (Score_Threshhold__c > 3, Grade_Threshhold__c = 3)), IMAGE(“YOUR 4 STAR IMAGE URL HERE“, “4”, 12, 75),
IF( OR (Grade_Threshhold__c = 4, Grade_Threshhold__c = 3), IMAGE(“YOUR 3 STAR IMAGE URL HERE“, “3”, 12, 75),
IF( OR (AND (Grade_Threshhold__c = 2, Score_Threshhold__c > 2), AND (Grade_Threshhold__c = 1, Score_Threshhold__c > 3)), IMAGE(“YOUR 2 STAR IMAGE URL HERE“, “2”, 12, 75),
IMAGE(“YOUR 1 STAR IMAGE URL HERE“, “1”, 12, 75)))))

(Replace Grade_Threshhold__c with the API name of your grade threshold field you created in the previous step)

If you do not want to use custom images and want to use the default stars images from Salesforce, you can use the following formula instead and it will automatically generate the stars for you:

IF( AND (Score_Threshhold__c > 1, Grade_Threshhold__c = 5), IMAGE(“/img/samples/stars_500.gif“, “5”, 12, 75),
IF( OR (Grade_Threshhold__c = 5, AND (Score_Threshhold__c > 1, Grade_Threshhold__c = 4), AND (Score_Threshhold__c > 3, Grade_Threshhold__c = 3)), IMAGE(“/img/samples/stars_400.gif“, “4”, 12, 75),
IF( OR (Grade_Threshhold__c = 4, Grade_Threshhold__c = 3), IMAGE(“/img/samples/stars_300.gif“, “3”, 12, 75),
IF( OR (AND (Grade_Threshhold__c = 2, Score_Threshhold__c > 2), AND (Grade_Threshhold__c = 1, Score_Threshhold__c > 3)), IMAGE(“/img/samples/stars_200.gif“, “2”, 12, 75),
IMAGE(“/img/samples/stars_100.gif“, “1”, 12, 75)))))

Here is what mine looks like:And there you have it! Now you can use your 5 point star scale in your page layouts, list views and even reports.

Here are some examples:To get in touch with our team of experts, please drop us a line in the form.

Written by Alon Margovskiy, Head of Marketing Automation, Superdrive.

Superdrive is an official Salesforce Partner with Salesforce Certified Marketing Cloud Specialists and Consultants.

Get in Touch

Table of Contents
    MORE LIKE THIS
    Superdrive Achieves EcoVadis Gold Certification for Sustainability Excellence
    Read More
    Customize the Required Field character in Pardot Forms to improve UX
    Read More
    Salesforce Showdown: Pardot vs. Marketing Cloud
    Read More

    Superdrive KK
    7-21-24 Roppongi, THE MODULE #309, 
    Minato-ku, Tokyo 106-0032
    Tel:+81 (03) 6455 0406

    Contact Us

    • B2B Salesforce Marketing Automation
    • B2C Salesforce Marketing Automation
    • Demand Generation
    • Performance Marketing
    • About
    • Contact Us
    • Sustainability
    • Facebook
    • X
    • LinkedIn
    © COPYRIGHT 2025 SUPERDRIVE | PRIVACY & SECURITY
    We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies. Read More
    Cookie settingsACCEPT ALL
    Manage consent

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
    CookieDurationDescription
    __cfduid1 monthThe cookie is used by cdn services like CloudFare to identify individual clients behind a shared IP address and apply security settings on a per-client basis. It does not correspond to any user ID in the web application and does not store any personally identifiable information.
    cookielawinfo-checbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
    cookielawinfo-checbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
    cookielawinfo-checbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
    cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
    cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
    cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
    viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
    Functional
    Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
    CookieDurationDescription
    __cf_bm30 minutesThis cookie is set by CloudFare. The cookie is used to support Cloudfare Bot Management.
    _icl_visitor_lang_js1 dayThis cookie is stored by WPML WordPress plugin. The purpose of the cookie is to store the redirected language.
    wpml_browser_redirect_testsessionThis cookie is set by WPML WordPress plugin and is used to test if cookies are enabled on the browser.
    Performance
    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
    CookieDurationDescription
    _gat1 minuteThis cookies is installed by Google Universal Analytics to throttle the request rate to limit the colllection of data on high traffic sites.
    Analytics
    Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
    CookieDurationDescription
    _ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
    _gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
    Advertisement
    Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
    CookieDurationDescription
    _mkto_trk2 yearsThis cookie is associated with an email marketing service provided by Marketo. This tracking cookie allows the website to link visitor behavior to the recipient of an email marketing campaign, to measure campaign effectiveness.
    Others
    Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
    CookieDurationDescription
    BIGipServersj11web-nginx-app_httpsNo description
    kw1 yearNo description
    kw-session-16456a6b6df0f330ba15daf07a0cbed915 minutesNo description
    SAVE & ACCEPT
    Powered by CookieYes Logo
    ×
    Ready to start your Journey?

    Get in Touch.

    By submitting this form, I authorize Superdrive to hold and process my data in accordance with the Superdrive Privacy Policy. You may opt-out of all communications at any time.