guide
guide7 min read

How to find the most used dashboards in your warehouse (and retire the rest)

A six-step method that uses warehouse query history to rank dashboards by real usage and cost

The most reliable way to find your most used dashboards is to attribute warehouse queries to dashboards. Do this through a query tag, label or BI service account, then count distinct viewers and runs per dashboard over 90 days. Both Snowflake's QUERY_HISTORY view and BigQuery's INFORMATION_SCHEMA.JOBS view record who ran each query, when it ran and how much compute it used. That is enough to build a usage ranking without asking the BI tool for anything.

Key Takeaways

  • •Dashboard usage can be derived from warehouse query logs, so you do not depend on a BI tool's view counters.
  • •Rank dashboards by distinct viewers over 90 days, not by run count. Scheduled refreshes inflate runs without any human looking.
  • •A dashboard with refresh cost but no human viewers is the safest retirement candidate.
  • •Retire in stages (flag, announce, archive, delete) so a quiet quarter-end report is not deleted by mistake.
  • •Usage ranking is a recurring job. A one-off audit goes stale within a quarter.

Step 1: Decide what counts as a dashboard query

Before you query anything, decide how a dashboard shows up in the warehouse. The warehouse does not know what a dashboard is. It only sees SQL from a user or service account. There are three common attribution signals, and most teams end up combining two of them.

  • •Query tags or labels: the BI tool sets a tag such as the dashboard ID on each session. This is the cleanest signal when it is available.
  • •SQL comments: some BI tools prepend a comment with the dashboard or report name. You can parse it out of the query text.
  • •Service account plus table fingerprint: if neither signal exists, isolate the BI service account and group its queries by the set of tables they read.

In our experience, the tag route is worth an hour of BI admin configuration if it is not already set. Every later step gets simpler.

Step 2: Pull 90 days of query history for the BI accounts

Ninety days is our default window because it covers one full quarter-end. A shorter window will mark finance dashboards as dead right before they are needed. Filter the history to the BI service account (or tagged sessions) and keep these columns: query ID, start time, end user, query tag or label, bytes scanned, and execution time.

On Snowflake, that is a select from the account usage QUERY_HISTORY view filtered on start time and the BI role. On BigQuery, it is the JOBS view filtered on the service account's user_email, with labels carrying the dashboard ID. Keep the raw rows in a staging table so the later steps are repeatable.

One caveat on the end user. Many BI tools run queries as a shared service account, which hides the real viewer. If that is your setup, either enable per-user credentials or session-level user tagging, or accept that you can only rank by run count and by distinct tables read. The ranking is weaker in that case, and the report should say so.

Step 3: Rank dashboards by distinct viewers, not runs

This step answers how to find the most used dashboards. Group the staged rows by dashboard and compute four numbers: distinct viewers, total runs, last-run date, and total bytes scanned or compute time.

MetricWhat it tells youTrap to avoid
Distinct viewers (90 days)How many people rely on itService accounts count as one viewer
Total runsHow hard the dashboard hits the warehouseScheduled refreshes inflate this
Days since last human runWhether anyone still looks at itA cache hit may hide real views
Compute or bytes scannedWhat it costs to keep aliveCost alone does not mean value

Sort by distinct viewers first. Break ties with days since last human run. That puts your real top dashboards at the top. It also exposes the dashboards with many runs and no viewers, which are scheduled refreshes feeding nobody.

Step 4: Separate human views from scheduled refreshes

A dashboard refreshed every 15 minutes will out-run a dashboard that three executives open each Monday. Run counts alone make the first look more important. Split each dashboard's queries into two buckets: queries triggered by a schedule (same minute each day, same service account) and queries triggered by a person (irregular timing, named user).

The simplest split is by timing pattern. If a dashboard has runs at identical minute offsets every day and no named-user runs, treat it as refresh-only. This is our opinion on a heuristic, not a standard. Spot-check ten dashboards by hand before you trust it across the whole list.

Step 5: Map each dashboard to the tables it reads

Once you know which dashboards are used, you also know which tables are used. This is the part most audits skip. For each dashboard, list the tables its queries read. Snowflake's ACCESS_HISTORY view records base objects accessed per query on the editions that include it. On other warehouses you can parse table names from the query text.

Two lists fall out of this. Tables read only by retired dashboards are deprecation candidates. Tables read by many dashboards are the ones you protect hardest. Our Usage Intelligence Agent keeps this who-queried-what mapping current, so you can ask it which tables haven't been queried in 90 days instead of rebuilding the join by hand.

Step 6: Retire the rest in stages

Do not delete on the first pass. Use four stages and a calendar date for each.

  • •Flag: mark dashboards with zero human viewers in 90 days as candidates and record the owner.
  • •Announce: message the owner and the channel where the dashboard is shared. Give two weeks to object.
  • •Archive: move the dashboard to an archive folder or unschedule its refresh. Keep it restorable for 30 days.
  • •Delete: remove it, and then review the tables only it read.

Unscheduling the refresh is the step that saves money. The compute stops immediately, and nothing is lost if someone complains. We recommend doing that before any deletion.

Run the audit from Claude Code instead of a spreadsheet

The six steps above are mostly SQL and judgment, which suits a coding agent. Every Data Workers agent is an MCP server, so you can run the audit from Claude Code or Cursor. You can ask in plain language: What tables haven't been queried in 90 days? The agent runs read-only queries against your warehouse and returns the ranking. The Model Context Protocol is the open standard that lets those clients call the agents.

The open-source edition runs locally and is read-only by default, which fits an audit well. Archiving and deleting need write access, and those actions go through the Pro edition's approval workflow. We covered how our Catalog Agent) keeps ownership metadata current in a separate post, and that metadata is what tells you who to notify in the Announce stage.

If you want the Autonomous Data Conductor to handle this on a schedule, you can set the autonomy dial per domain. For example, let it flag candidates automatically but require approval before it archives anything.

Common mistakes when ranking dashboards

  • •Using a window shorter than a quarter, which retires quarter-end reports.
  • •Counting scheduled refreshes as usage.
  • •Trusting a BI tool's own view counter without checking it against warehouse logs.
  • •Deleting a dashboard without checking which tables only it reads.
  • •Treating the audit as one-off instead of recurring.

Frequently Asked Questions

How do I find the most used dashboards if my BI tool hides query tags? Use the BI service account's query history and group by the set of tables each query reads. Dashboards map to table fingerprints, so you can still rank them by run count and last-run date, though you lose per-viewer detail unless you enable per-user credentials.

How long should the lookback window be before a dashboard counts as unused? We use 90 days as a minimum because it spans a quarter-end. For annual or audit-driven reports, use 12 months or check with the owner before flagging.

Can warehouse logs replace the BI tool's usage reports? They can replace the counting, and they add cost and table lineage that BI reports lack. They cannot see views served entirely from the BI tool's cache, so treat low numbers on cached dashboards with some caution.

What should I do with tables that only retired dashboards used? Mark them as deprecation candidates, notify their owners, and run the same flag, announce, archive, delete sequence. Check for downstream dependencies such as notebooks and pipelines before you drop anything.

Does this work on Snowflake and BigQuery? Yes. The method is warehouse-agnostic, because it needs only who ran which query, when, and how much it cost. The column names differ by platform, so check your warehouse's query history documentation.