Creating a Dynamic Dashboard in Salesforce

Understanding and Creating a Dynamic Dashboard in Salesforce

Dashboards are a great way to represent data visually within an organization. They can show how you have performed in the past and what’s happening at the moment, two keys to any business that wants to be successful.

Normally, dashboards in Salesforce are run based on one user for the entire organization. Meaning the dashboard looks the same for all users within the organization. This is great if you are trying to display how close your company is to its year-end sales goal, but what if you want each user to see a dashboard of how close they are to their own sales goal?

For Example: John and Mary are both salesman in your organization whose security settings only allow for them to read sales that they own. Currently your dashboard showing year-to-date sales figures is a standard dashboard, with the running user set as a system administrator. Therefore, both John and Mary see the dashboard of the year-to-date sales of the entire company. You want to create another dashboard showing both John and Mary their sales numbers individually, without giving one access to the other’s information.

Dynamic dashboards allow each user to see the data they have access to according to the security settings that are in place. Without read access to a record, that record will not be accounted for in the dashboard. This allows you to control data visibility without having to create separate dashboards.

Creating a dynamic dashboard vs. a standard dashboard is essentially the same process, with one major difference. Since a dynamic dashboard should run according to the security settings of a the user which is viewing the dashboard, and not a specified user all the time, the “Running User” selection should be changed from the standard, “Run as Specified User” selection to, “Run as Logged-in User” which changes the security settings on the dashboard to match that of the user which is logged-in at the time of viewing.


Since we already know how to create a standard dashboard, creating a dynamic dashboard will only involve a few extra steps. In fact, by performing the following actions you can also easily change a standard dashboard to a dynamic dashboard. To create a dynamic dashboard there are two steps, controlling access to the dashboard and controlling access to the data.

*Before we get started: While many organizations and users like the Salesforce feature of scheduling an automatic refresh for their dashboards, dynamic dashboards which are being run as the logged-in user cannot run on a scheduled refresh. Instead, the user will have to manually refresh their dashboard each time they want to see the updated data.

To control access to the dashboard:

  • In the Reports Tab, create a New Dashboard Folder

  • Select a name for the New Dashboard Folder

  • Select the pin dropdown next to your newly created folder and Share with the appropriate users/roles

To control access to the data within the dashboard itself, we need to change the settings within the dashboard to run as the logged-in user so that the user logged-in will view the dashboard according to their own security settings. To do this:

  • Edit the dashboard and select “View Dashboard As” and change the selection to “Run as logged-in User” to make this a dynamic dashboard as we discussed previously.

*Note: The option to “Let authorized users change running user” will allow any user with permissions to change the running user when viewing the dashboard. These include users with the following security settings:

  • “View My Team’s Dashboards” allows viewing as any user below them in the role hierarchy.
  • “View All Data” allows viewing as any user in the organization.
  • “Enable Other User’s Dashboard” allows for editing of the dashboard if allowed access, even if they aren’t the running user.

 You have now created a dynamic dashboard that will show data according to each user that is logged-in at the time of viewing. Remember, you can create dashboards using many different kinds of visual representation as well as underlying reports, so feel free to get creative!