Sub topic 12
Share the dashboard with viewers
This chapter covers sharing a finished dashboard so that people can use the slicers without breaking anything. It assumes you have a Dashboard tab with pivot tables, charts, slicers, and SUBTOTAL KPI cells from the earlier chapters. It also assumes you can open the Share dialog in Google Sheets. Sharing happens at the file level, and that has consequences for your source data, which this chapter covers.
What viewers can and cannot do with slicers
A Google Sheets file has one set of saved slicer settings. Each slicer stores its data range, its column, and its current filter. What happens when someone changes a slicer depends on their role.
- Editors can change the filter and the slicer's settings (data range, column, filter type). A filter change by an editor is saved to the file, so everyone sees it the next time they open or refresh the sheet.
- Viewers and commenters can change the filter selection in a slicer. Their change is temporary and applies only to their own session. It is not saved, and it does not change what other people see.
- Viewers and commenters cannot edit slicer settings, move or delete slicers, or edit cells.
So the saved state of each slicer is the view everyone gets when they first open the file. Set it deliberately before you share. For example, clear the filters so every viewer starts with the full data, or select the current month if that is the default view you want.
| Role | Change slicer selection | Selection saved for others | Edit slicer settings | Edit cells |
|---|---|---|---|---|
| Viewer | Yes | No | No | No |
| Commenter | Yes | No | No | No (can add comments) |
| Editor | Yes | Yes | Yes | Yes |
The same per-session behavior applies to your SUBTOTAL KPI cells. When a viewer filters a slicer, the SUBTOTAL formulas in their session recalculate against the rows their filter leaves visible. They still don't change the file for anyone else.
Choose the access level
Sheets sharing has two layers. The first is named people or groups, each with a role. The second is general access, which controls what happens when someone has the link but is not on the list.
- Click Share at the top right.
- Add people or groups by email and pick Viewer for each. Use a Google Group if the audience changes often, so you manage membership in one place.
- Under General access, choose Restricted (only listed people) or, if your organization allows it, a wider option such as everyone in your organization or anyone with the link.
- For a wider option, set the role to Viewer.
Link access on an organization's account may be restricted by an administrator. If the option you need is missing or grayed out, that is a policy setting, not a problem with your file.
Know what a viewer can see
Sharing is per file, not per tab. Anyone who can open the file can reach every visible tab, including your Data tab and the pivot tables. A hidden tab is not a security control. A viewer who can make a copy of the file gets a copy that includes hidden tabs, and a viewer can also read values through formulas in their own copy.
This matters for the flat source table you built in the second chapter. If the Data tab contains customer names, emails, or other sensitive columns, anyone you share with can read them. Your options, from simplest to most work:
- Share only if the data is fine to expose. This is the right choice for most simple dashboards.
- Remove sensitive columns from the source table. The dashboard only needs the columns the pivots and charts use, such as Order Date, Region, Category, Units, and Revenue.
- Build a separate summary-only file. Keep the detailed data in a private file and create a second file for viewers. This takes more setup, and slicers only filter data that lives in that file, so you would need to rebuild the pivots on the data you copy over.
In the Share dialog, open the settings (gear icon) and review these options:
- Editors can change permissions and share. Turn this off so editors cannot widen access without you.
- Viewers and commenters can see the option to download, print, and copy. Turn this off if you do not want casual downloads. It reduces copying but does not make the data secret, because a viewer can still read what is displayed.
Protect the parts viewers should not touch
Viewers cannot edit anything, so protection matters mostly when you have more than one editor. Use Data > Protect sheets and ranges to lock the Data tab and the pivot table tabs so a co-editor does not accidentally type over a row or drag a pivot field. Set the permission to "Only you" or to a short list of people. Keep the Dashboard tab editable by the people who maintain the layout.
A protected range does not stop a slicer from working. Slicers read the range. They do not write to it.
Send viewers to the dashboard tab
When someone opens the file link, they land on whichever tab the link points to. A link copied while you are viewing a tab includes a #gid= number that identifies that tab. To send viewers straight to the dashboard:
- Click the Dashboard tab so it is active.
- Copy the URL from the browser address bar. It ends in
#gid=followed by a number. - Share that URL.
You can also place the Dashboard tab first in the tab order and leave it as the active tab when you finish editing. The #gid= link is the more reliable of the two.
If you manage sharing from a script, you can build the dashboard link and set sharing in Apps Script. This script assumes the tab is named Dashboard. Run it from the script editor (Extensions > Apps Script) and authorize it when prompted.
function dashboardLink() {
const ss = SpreadsheetApp.getActive();
const sheet = ss.getSheetByName('Dashboard');
if (!sheet) {
throw new Error('No tab named Dashboard was found.');
}
const link = ss.getUrl() + '#gid=' + sheet.getSheetId();
Logger.log(link);
return link;
}
function shareWithViewer(email) {
const file = DriveApp.getFileById(SpreadsheetApp.getActive().getId());
file.addViewer(email);
}Call shareWithViewer('[email protected]') from another function or the editor's run menu with a real address. The script does the same thing as the Share dialog, so Workspace policies still apply.
Test as a viewer before you announce it
Test with the view your audience will actually get. Do not assume it matches what you see as the owner.
- Open the link in a private (incognito) window, or sign in with a second account that has Viewer access.
- Confirm the Dashboard tab opens first and the charts render.
- Change each slicer. Confirm the linked pivot tables, charts, and SUBTOTAL KPI cells respond.
- Reload the page. Confirm the slicers return to the saved state you chose.
- Try to edit a cell. Confirm it is blocked.
- Open the link on a phone. The mobile app can behave differently from the browser, particularly for slicers, so check the specific devices your audience uses.
If a viewer sees a chart or KPI that does not respond, the cause is usually slicer scope, which the earlier troubleshooting chapter covers, rather than permissions. If a viewer sees a "You need access" page, the sharing step failed. Check that their account matches the email you added.
Publish to the web is a different feature
File > Share > Publish to web produces a public web page or embed code of a tab or chart. It is not the same as sharing the file, and it is a poor fit for a dashboard that depends on slicers. Treat a published version as a static snapshot. Do not rely on slicers working in it, and test before promising otherwise. It also makes the published content public to anyone who has the address. Use normal sharing with Viewer access for interactive use.
Keep the shared dashboard maintainable
- Edit a copy for big changes. Make a copy of the file, rebuild or restructure there, then swap the link. Viewers never see a half-built dashboard.
- Use version history. File > Version history shows who changed what, and you can restore an earlier version if someone breaks a slicer.
- Reset the saved slicer state after editing. Your own test selections are saved, because you are an editor. Clear them before you leave.
- Note the data refresh path. If new rows are added to the Data tab, check that your pivot ranges and SUBTOTAL ranges (such as
Data!F2:F1000) still cover them. A viewer cannot fix a range that ends too early.
Exercise
A colleague with Viewer access says that when they select "West" in the Region slicer, the KPI cells update for them, but another colleague opening the file later still sees all regions. Is something broken, and what would change the saved view for everyone?
Show answer
Nothing is broken. A viewer's slicer selection applies only to their own session and is not saved. The saved view changes only when an editor changes the slicer's filter, so you would set it as an editor and leave it in the state you want everyone to see when they open the file.
Exercise
Your Data tab includes a Customer Email column that the dashboard does not use. You want to share the dashboard with 40 coworkers as Viewers. What is the main risk, and what should you do before sharing?
Show answer
Sharing is per file, so all 40 viewers can read the Data tab, including the email column. Hiding the tab does not prevent access, because a copy of the file includes hidden tabs. Remove the column from the shared file, or build a separate summary-only file, and then share with Viewer access.