Success Solutions logo marksuccess SOLUTIONS

Picklist Tally

Picklist Tally setup guide

For Salesforce admins who install and set up Picklist Tally. It covers every part of the app, from install to uninstall.

What Picklist Tally does

Salesforce reports can't count the values in a multi-select picklist. Group a report by one and you get a row for every combination, such as Cycling;Running, not a count of each value.

Picklist Tally counts each value. It gives you three ways to see the counts:

  • A live chart you can put on any Lightning record, home or app page.
  • Standard reports and dashboards. For each field you track, the app keeps one Selected Value row per value per record. Group a report by value and you get the count.
  • Value history. If you switch it on, the app logs each value added to or removed from a record, with who and when.

It also adds two Flow actions: one finds records whose multi-select includes certain values, and one splits a multi-select value into a list you can loop over.

Picklist Tally is free and 100% native. It makes no calls to outside servers and no data leaves your org. It never edits your own records. It only writes to its own objects.

Before you start

  • Editions: Enterprise, Unlimited, Performance and Developer Edition. Professional Edition is not yet confirmed.
  • Lightning Experience only. The chart and the setup tab are Lightning web components. They don't work in Salesforce Classic.
  • No other packages are needed.
  • Data storage. Each value row uses about 2 KB of data storage. See Limits and good to know to estimate how much you'll use.

Install and give access

  1. Install Picklist Tally from its AgentExchange listing. We suggest you install it in a sandbox first.
  2. When asked who to install for, choose Install for Admins Only. You then give access with the permission sets below.
  3. Assign the permission sets (Setup > Users > Permission Sets).
  4. Share the Picklist Tally report folder and the Picklist Tally Dashboards folder with the people who need them.

The two permission sets

Picklist Tally Admin (API name Frequency_Reports_Admin) is for the people who set the app up. It gives:

  • The Picklist Tally app and the Picklist Tally Setup tab.
  • The Manage Picklist Tally custom permission. Without it, nobody can track fields, rebuild, or turn the nightly sync on or off.
  • Create, read, edit and delete on Tracked Field records (with View All and Modify All).
  • Read access to Selected Value and Value Change rows.
  • Access to the chart and all three Flow actions, including Sync Multi-Select Values.

Picklist Tally User (API name Frequency_Reports_User) is for everyone else who needs the chart or the reports. It gives:

  • The Picklist Tally app. The setup tab is available but read-only: users see the tracked fields but can't change them.
  • Read access to Selected Value, Value Change and Tracked Field rows.
  • Access to the live chart and to the Find Records Where Multi-Select Includes and Split Multi-Select Values Flow actions.

People need one of these permission sets to see the live chart. Report and dashboard access still needs the usual Salesforce report permissions from their profile or other permission sets.

Track a field

Tracking a field is what feeds the reports, dashboards and value history. The live chart works without it.

  1. Open the Picklist Tally app and go to the Picklist Tally Setup tab.
  2. Object: choose the object.
  3. Multi-select picklist field: choose the field. Only multi-select picklists you can see are listed.
  4. Lookup field on Selected Value (optional): leave this blank unless you track a custom object and want a report type for it. See Lookup field for custom objects below.
  5. Keep it up to date with: tick one or both sync methods (both are ticked to start with):
    • Trigger - for Account, Contact, Lead, Opportunity and Case only. The app's built-in triggers update the rows as soon as a record is saved.
    • Nightly - for any object. The nightly sync picks up records that changed since its last run.
  6. Keep a history of values added and removed: tick this if you want value history. It uses data storage, so it's off to start with. See Value history.
  7. Click Track field.

The first sync starts straight away as a background job. On big objects it can take a few minutes. Click the refresh icon at the top of the tab to see progress.

The tracked fields table

The table lists each tracked field with its sync methods, whether history is on, how many value rows it has, its status and when it last had a full sync. Flow only in the Sync column means neither method is ticked.

Use the menu at the end of each row to:

  • Rebuild - re-read every record and refresh all the field's rows. Use it after you rename or deactivate picklist values.
  • Deactivate or Activate - Deactivate stops tracking and removes the field's value rows. Activate turns it back on and runs a rebuild.
  • Start history or Stop history - turn value history on or off. Stopping keeps the history you already have.
  • Remove - stop tracking the field and remove its value rows. Value history is kept.

If the status says Field not found, the field or object has been deleted or you no longer have access to it.

The nightly sync

The Nightly sync (2am) toggle on the setup tab turns one scheduled job on or off for the whole org. It's called Picklist Tally nightly sync. Each night it:

  1. Reads only the records changed since its last run, for every active field with Nightly ticked.
  2. Removes rows for records that have been deleted.

The job runs at 2am in the time zone of the admin who switched it on, and runs as that admin. If that admin leaves, switch the toggle off and on again as another admin.

We suggest you keep the nightly sync on even for fields that use triggers. It's the safety net if a background update ever fails.

How the triggers behave

The built-in triggers run after records are created, edited, deleted or restored. On edit, they only do work if a tracked field changed.

They never block a user's save. If a save would write a lot of rows (more than Max Sync Rows, 2,000 by default), or if anything goes wrong, the work moves to a background job instead. That job tries again once if it fails. The nightly sync catches anything still missed.

Lookup field for custom objects

The app has ready-made report types for Account, Contact, Lead, Opportunity and Case. For a custom object, you can build your own:

  1. In Object Manager, open Selected Value and add a Lookup Relationship field that points at your custom object (for example Project__c). Give your users field-level access to it.
  2. On the setup tab, enter that field's API name in Lookup field on Selected Value when you track the field.
  3. Create a custom report type with your custom object as the primary object and Selected Values as the related object.

The lookup can only be set when you start tracking. To add or change it later, remove the tracked field and track it again.

Keeping custom objects up to date

The built-in triggers only cover Account, Contact, Lead, Opportunity and Case. A managed package can't add triggers to your custom objects. You have two options for custom objects:

  • The nightly sync. Tick Nightly and turn the nightly sync on. Counts are up to a day behind.
  • A Flow. Add the Sync Multi-Select Values action to a record-triggered Flow. Counts update as soon as a record is saved.

Set up the Flow

  1. Go to Setup > Flows and click New Flow.
  2. Choose Record-Triggered Flow.
  3. Object: your custom object.
  4. Trigger the Flow when: A record is created or updated.
  5. Optimise the Flow for: Actions and Related Records. This makes it an after-save Flow, which is what the action needs.
  6. Optionally, set an entry condition so it only runs when the tracked field changes. This saves work on busy objects.
  7. Add an Action element. Search for Sync Multi-Select Values (it's in the Picklist Tally category).
  8. Give it a label, then set the recordIds input to {!$Record.Id}.
  9. Save and activate the Flow.

Good to know:

  • The action updates every active tracked field on that object, whatever sync methods are ticked.
  • It also logs value history for fields with history on.
  • Flows can't run after a record is deleted, so the Flow can't clean up deleted records. Keep Nightly ticked and the nightly sync on, and it will remove rows for deleted records each night.
  • One Flow per object is enough, however many fields you track on it.

The live chart

The chart is a Lightning component called Multi-Select Value Counts. It shows a bar for each value, with the count and the percentage of records.

Add it to a page

  1. Open a record page, home page or app page and click Edit Page to open the Lightning App Builder.
  2. Drag Multi-Select Value Counts onto the page.
  3. Fill in its properties and save.

Properties

  • Title - leave blank to use the field label.
  • Object API name (required) - the object that has the field, for example Contact.
  • Field API name (required) - the multi-select picklist field, for example Interests__c.
  • Filter by lookup to this record (record pages only, optional) - a lookup on that object that points at the page's record.
  • Sort - by Count (highest first) or Picklist order.
  • Show records with no value - adds a (no value) bar. On by default.

Example: count on a record page

To show the interests of an Account's Contacts on the Account page:

  • Object API name: Contact
  • Field API name: Interests__c
  • Filter by lookup to this record: AccountId

Each Account page then counts only that Account's Contacts.

Picked together

Click Picked together at the top of the chart to see which pairs of values people choose together, biggest first (for example "Cycling + Yoga - 41 records"). Click Counts to go back.

  • It reads the field as the person viewing the page, so it only counts records and fields they can see, and it uses the same record-page filter as the counts.
  • It shows the top 20 pairs. The percentage is of records that have at least one value.
  • It reads up to 20,000 records. If there are more, a note says the result is based on the first 20,000.
  • Nothing is stored and no setup is needed.

How the chart counts

  • Counts run as the viewer. The chart only counts records and fields the person looking at it can see. Two people can see different numbers on the same page.
  • A record with several values counts once for each value. The text under the chart says how many records were counted.
  • The chart works whether or not the field is tracked. It counts live from your records.
  • It shows up to 90 values per field. If a field has more, the chart says only the first 90 are shown.
  • Inactive values show in grey, marked (inactive). These are values no longer active in the picklist that records still hold. The chart can only find them if the field is tracked.
  • Use the refresh icon on the chart to load the latest counts.
  • Viewers need the Picklist Tally User or Admin permission set.

Reports and dashboards

Report types

Picklist Tally adds these report types:

  • Picklist Tally - Selected Values - one row per selected value. Group by Field Label, then Value Label, to count each value.
  • Picklist Tally - Accounts with Selected Values
  • Picklist Tally - Contacts with Selected Values
  • Picklist Tally - Leads with Selected Values
  • Picklist Tally - Opportunities with Selected Values
  • Picklist Tally - Cases with Selected Values
  • Picklist Tally - Value Changes - the value history.

The with Selected Values types start from the parent record, so the parent's own sharing still applies. They also let you filter and group by the parent's fields, such as Account Owner or Region.

Useful Selected Value fields: Value (the API name), Value Label, Field Label, Source Object, Source Field, Record Id and Inactive Value.

Tip: if two objects have a field with the same label, filter by Source Object too so their counts don't merge.

Ready-made reports

These are in the Picklist Tally report folder:

  • Value Counts by Field - a count of each value, grouped by field.
  • Inactive Values Still In Use - values no longer active in the picklist that records still hold.
  • Recent Value Changes - values added and removed in the last 30 days, newest first.

They are part of the package, so you can't edit them directly. Use Save As to make your own copy in another folder, then change it.

The Picklist Tally Overview dashboard

The Picklist Tally Overview dashboard is in the Picklist Tally Dashboards folder. It has:

  • A bar chart of value counts by field.
  • A metric showing how many records still hold an inactive value.

It shows no data until you click Refresh the first time. After that, refresh it whenever you want the latest numbers.

It runs as one user (normally the admin who installed Picklist Tally), so everyone who opens it sees the counts that user can see. To change that, open the dashboard, click Edit, then the settings (gear) icon, and choose who it views as. On Enterprise Edition and above you can make it a dynamic dashboard ("the dashboard viewer"), which counts towards your org's dynamic dashboard limit.

Counts over time

Salesforce Reporting Snapshots can't use multi-select picklists, but they can use Picklist Tally's value rows. Copy Value Counts by Field, filter it to one field, and use it as the source report for a Reporting Snapshot. Schedule the snapshot after the 2am nightly sync. You can then chart how each value's count changes month by month.

Inactive values

When you deactivate a picklist value, records that already hold it keep it. Picklist Tally flags those rows as inactive, so you can find and clean them up:

  • The live chart shows them as grey bars marked (inactive).
  • The Inactive Values Still In Use report lists them, grouped by field and value.
  • The Overview dashboard shows how many there are.

Once no record holds the value any more, it disappears from the chart and the report.

After you deactivate a value, run Rebuild on the field so the existing rows are flagged. See Renaming or deactivating values.

Value history

Salesforce's own field history can't show which multi-select values were added or removed. Picklist Tally can.

Turn it on

  • For a new field, tick Keep a history of values added and removed before you click Track field.
  • For a field you already track, choose Start history from its row menu.

Changes from then on are logged. Earlier changes aren't.

What is logged

Each value added to or removed from a record makes one Value Change row with:

  • The value and its label, and the field.
  • Whether it was Added or Removed.
  • Changed At and Changed By.
  • The record Id, plus a lookup to the record for Account, Contact, Lead, Opportunity and Case.

Changes are logged when:

  • A user saves an Account, Contact, Lead, Opportunity or Case and the built-in triggers run (including when that work moves to a background job).
  • The Sync Multi-Select Values Flow action runs on any object.

What isn't logged

  • Changes picked up by a Rebuild or the nightly sync. These can't tell who made the change, so they don't log it.
  • Changes made while triggers are switched off with Disable Triggers.
  • Changes from before history was turned on.

See it

Use the Recent Value Changes report, or build your own on the Picklist Tally - Value Changes report type. You can also add the Value Changes related list to Account, Contact, Lead, Opportunity and Case page layouts.

Storage

Each history row uses about 2 KB of data storage, and history keeps growing. That's why it's off by default. Stopping history, or removing the tracked field, keeps the rows you already have. To clear old history, delete Value Change rows with Data Loader or a similar tool, as a user with delete access (such as a System Administrator).

Flow actions

Picklist Tally adds two general-purpose Flow actions. You'll find them in the Picklist Tally category when you add an Action element. They work with any multi-select picklist, tracked or not.

Find Records Where Multi-Select Includes

Flow's Get Records element can't filter on includes for a multi-select picklist. This action can. It finds records whose field includes any or all of the values you give it.

Inputs:

  • Object API name (required) - for example Contact.
  • Field API name (required) - for example Interests__c.
  • Values (required) - a text collection of the values to look for. Use the value API names, not the labels. Up to 100 values.
  • Match all values - tick (True) to find records that have every value. Leave it off to find records with any of them.
  • Maximum records - the most record Ids to return. 2,000 by default, up to 10,000.

Outputs:

  • Record Ids - the Ids of the matching records.
  • Number of records - how many Ids were returned.

It runs as the user running the Flow, so it only returns records and fields that user can see.

Example: email every Contact interested in Cycling or Running.

  1. Create a text collection variable holding Cycling and Running.
  2. Add the Find Records Where Multi-Select Includes action: Object API name Contact, Field API name Interests__c, Values your collection, Match all values off.
  3. Add a Get Records element on Contact with the condition Id In the action's Record Ids output.
  4. Loop over the Contacts, or pass them to a Send Email action.

Split Multi-Select Values

This action turns a multi-select value such as Cycling;Running;Swimming into a text collection you can loop over. It runs no queries.

Input:

  • Multi-select value - the field value, for example {!$Record.Interests__c}.

Outputs:

  • Values - each selected value (API name), in the order Salesforce stores them.
  • Number of values - how many values are selected.

Example: create one Task per selected interest.

  1. In a record-triggered Flow on Contact, add Split Multi-Select Values with Multi-select value {!$Record.Interests__c}.
  2. Add a Loop over the Values output.
  3. Inside the loop, add a Task to a record collection, using the current value in the subject.
  4. After the loop, create the Tasks with one Create Records element.

You can also use Number of values in a Decision, for example to check that someone picked at least one value.

Renaming or deactivating values

When you change picklist values in Setup, Salesforce updates your records without running triggers. Picklist Tally doesn't see the change on its own.

After you rename, deactivate, replace or delete a value in a tracked field:

  1. Open the Picklist Tally Setup tab.
  2. Find the field in the tracked fields table.
  3. Choose Rebuild from its row menu.

The rebuild re-reads every record. It updates value labels, flags inactive values and removes values no longer on any record. Reports and dashboards then show the new names.

Rebuilds don't log value history.

Settings

Picklist Tally has a hierarchy custom setting called Picklist Tally Settings (API name Frequency_Settings__c). You can set it for the whole org, a profile or a single user.

To change it: Setup > Custom Settings > Picklist Tally Settings > Manage. Click New above the default organisation level, or choose a profile or user.

Disable Triggers

Tick Disable Triggers to stop the built-in triggers on Account, Contact, Lead, Opportunity and Case. Use it during big data loads so the load runs faster.

When the load is done:

  • Untick it again.
  • If the field has Nightly ticked and the nightly sync is on, it catches up that night.
  • If not, run Rebuild on the field.

Disable Triggers doesn't stop the Sync Multi-Select Values Flow action. To pause that, deactivate the Flow during the load.

Tip: set it for just the integration or data-load user, so everyone else's saves still update straight away.

Max Sync Rows

Max Sync Rows is the most value rows a trigger writes while the user is saving. Above this, the work moves to a background job. Leave it blank to use the default of 2,000.

Lower it if saves feel slow or you hit limits alongside other automation. You rarely need to raise it.

Limits and good to know

Storage

  • Each Selected Value row uses about 2 KB of data storage. There is one row per selected value per record, per tracked field.
  • Example: 50,000 Contacts with 3 interests each is 150,000 rows, about 300 MB.
  • Value Change rows (history) also use about 2 KB each.
  • Check your storage at Setup > Storage Usage. Only track the fields you need.

Governor limits

  • The triggers never block a save. Big saves, and any save that fails to update the rows, are handed to a background job.
  • Rebuilds and the nightly sync run as batch jobs, 100 records at a time. Tracked fields are processed one after another, so the app never uses more than one of your org's batch slots at a time.
  • The live chart uses one count query per value, which is why it stops at 90 values. On very large objects a count can time out. The chart then shows a message instead of the bars.
  • The Find action returns up to 10,000 record Ids per call.

Sharing and field security

  • Live chart: runs as the viewer. Respects their sharing, object access and field access.
  • Value rows and history: built by the app in system mode, so the counts include every record. Anyone with either permission set can read all rows. Rows aren't filtered by the viewer's access to the source record or field.
  • With Selected Values report types: start from the parent record, so the parent's sharing applies.
  • Setup tab: changes need the Manage Picklist Tally custom permission (in the Admin permission set) and run with the admin's own permissions.
  • Find action: runs as the Flow's running user.

Other things to know

  • The app never edits your records. It only writes to its own objects: Tracked Field, Selected Value and Value Change.
  • No data leaves your org. There are no outside servers. Read the Picklist Tally privacy notice.

Uninstalling

Salesforce won't uninstall a package while parts of your org still use it. Do these first:

  1. Turn off the nightly sync on the Picklist Tally Setup tab.
  2. Wait for running jobs to finish. Check Setup > Apex Jobs.
  3. Remove the Multi-Select Value Counts chart from every Lightning page.
  4. Deactivate and delete Flows that use the Picklist Tally actions (all versions).
  5. Delete your own reports, dashboards and custom report types built on Picklist Tally objects or report types.
  6. Delete any lookup fields you added to Selected Value.

Then go to Setup > Installed Packages and click Uninstall next to Picklist Tally.

Uninstalling removes the app's objects and all their data: Tracked Field settings, Selected Value rows and value history. Salesforce offers to save a copy of the package's data for 48 hours. Your own records are not changed.

Support

Picklist Tally is free and is built and supported by Success Solutions Ltd.

For help or feedback, use our contact form and choose Our apps - support or feedback. Please don't send personal data from your org unless you need to.