Dashboard Mode - IMPORTDATA for CSV/TSV
Goal
See live data from a CSV file on the web inside your Google Sheet. This helps you track updates automatically without copying data manually.
See live data from a CSV file on the web inside your Google Sheet. This helps you track updates automatically without copying data manually.
| Product | Sales | Region |
|---|---|---|
| Apples | 100 | East |
| Bananas | 150 | West |
| Cherries | 200 | East |
| Dates | 120 | South |
| Elderberries | 90 | West |
Note: This data is from a CSV file hosted online.
=IMPORTDATA("https://example.com/sample-data.csv"). Shows all rows and columns from the CSV.=SUM(B2:B6). Shows total sales from imported data.=AVERAGE(B2:B6). Shows average sales per product.=QUERY(A1:C6,"select C, sum(B) group by C label sum(B) 'Total Sales'",1). Groups sales by region.+----------------------+------------------+ | Raw Data Table | Total Sales Card | | (Imported CSV) | | | |------------------| | | Average Sales Card| +----------------------+------------------+ | Sales by Region Summary Table | +----------------------------------------+
You can add a filter dropdown for Region. When you select a region, the Raw Data Table, Total Sales, Average Sales, and Sales by Region summary update to show only data for that region.
This uses a filter formula or a slicer connected to the data range.
If you add a filter to show only Region = East, which components update?