Dashboard Mode - IMPORTRANGE for cross-spreadsheet data
Goal
See sales data from another Google Sheet in this sheet to analyze total sales and average sales per region.
See sales data from another Google Sheet in this sheet to analyze total sales and average sales per region.
Source Spreadsheet (Sales Data):
| Region | Sales |
|---|---|
| North | 100 |
| South | 200 |
| East | 150 |
| West | 120 |
| North | 130 |
| South | 220 |
Destination Spreadsheet (this sheet):
| Imported Data |
|---|
| Using IMPORTRANGE formula to get data from source sheet |
=IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123xyz456/edit#gid=0", "Sheet1!A2:B7")=SUM(IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123xyz456/edit#gid=0", "Sheet1!B2:B7"))=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/abc123xyz456/edit#gid=0", "Sheet1!A2:B7"), "select Col1, avg(Col2) group by Col1 label avg(Col2) 'Average Sales'", 0)+----------------------+-----------------------+ | Imported Sales Data | Total Sales KPI | | Table | (Sum of Sales) | | | | +----------------------+-----------------------+ | Average Sales per Region (Grouped Table) | +--------------------------------------------------+
Add a filter dropdown for Region. When you select a region, the Imported Sales Data Table, Total Sales KPI, and Average Sales per Region table update to show data only for that region.
This can be done by adding a filter formula or using a slicer connected to the imported data range.
If you add a filter to show only the "South" region, which components update?