← Keith Troutt

SnowDash

A pivot table for Snowflake data. Pick a data source, drag in fields, filter, and export the result to Excel. It runs inside Snowflake on App Runtime, and every query uses the viewer's own roles.

SnowDash was built by Rogério Ferreira. Keith Troutt designed and built the data modeling, semantic view and Cortex AI features, and worked with Rogério on the UI. Read more about the project on LinkedIn.

Home page

People open SnowDash to a list of data sources and saved SnowBooks instead of an empty picker, with any unsaved work linked at the top.

Data sources
Published semantic views show up as cards. Admins can mark the ones they trust as Certified.
SnowBooks
Saved analyses, filtered by Recent, Featured, Mine or All, with one search box across them.
Unsaved work
Anything you haven't saved is named and one click away. Opening something else only asks first if you actually changed something.
Links
A link to a SnowBook opens straight into it, so it can go in a portal or an email.

Model mode

Someone on the data team builds the model once, and everyone else starts from it. Pick a database and schema, drag tables onto the canvas, and SnowDash suggests the join keys.

Retail Sales: a fact table joined to its dimensions. The join editor is on the right and the field names are below.
Join keys
Matching columns are joined when you drop a table. If nothing matches, the table is flagged until you pick the keys.
Make base table
Re-roots the joins on the most detailed table so rows don't drop out.
Many-to-many joins
SnowDash warns when a join would inflate totals. On Superstore, joining RETURNS overstated Sales by 26%. One click builds a one-row-per-key view that fixes it.
Model filters
Filters that apply to every sheet. They show as chips so it's obvious they're on.
The join editor with a detected key, and column profiles underneath.

Column profiles

Each column gets a profile: distinct values, nulls, the most common values, histograms and date ranges. Click a value to filter on it, or preview the rows.

Dates get a histogram by year, numbers get a distribution, and ID columns are recognized as keys.
Speed
A 500,000-row fact table profiles in about 2 seconds, using approximate counts.
One table or the model
Profile a single table, or the joined model the way analysts will see it.
Keep only, exclude
Click a value to filter every sheet on it.

Field names and formats

SALES_DOLLAR_AMOUNT becomes Sales, shown as $1,234. You set it once per field and it carries to every sheet and export.

Currency formatting, on every sheet the field appears in.
Names and folders
Rename fields, group them into folders and hide the keys.
Formats
Currency, percent, decimals, separators and negatives. A datetime can display as a date without changing the SQL.
Suggestions
Cortex suggests names, folders and formats from the column names. Nothing changes until you accept it.
Settings files
Export a model's field settings to JSON and import them into another model, with a preview of what will change.

Analyze

Drag fields onto rows, columns and values, filter, and export to Excel.

Two measures under each category, with the Totals menu open.
Subtotals by group and a grand total.
Excel and CSV
The Excel file keeps number formats, merged headers, totals and frozen panes.
Table calculations
Difference, percent difference, percent of total, running total, rank and moving average. Totals still come out right.
Totals
Grand totals and row or column subtotals, at the top or bottom. Sorting keeps groups together.
Undo
Undo and redo cover model edits as well as sheet changes.
Relative dates
Filters like last 30 days or year to date are recalculated each time the SnowBook opens.
Help
A first-run tour, a tour of building a model, and a Help menu.

Publishing semantic views

A model can be published as a Snowflake semantic view, so SnowDash, Cortex Analyst and other tools use the same definition. SnowDash checks the model first, lets you test it, shows the DDL, and creates the view with your own Snowflake role.

Readiness checks, the publish target (limited to schemas you can write to), and the role that will own the view.
Readiness checks
The fact table is the base, keys are many-to-one, metrics translate to SQL, and rates are averaged instead of summed.
Test first
A temporary draft of the view answers a test question and is then dropped.
Access
People need access to the semantic view, not the tables underneath it.
Fixing a many-to-many join with one row per key, checked column by column.
A published view opened in Model mode: its tables, join keys, and each table's dimensions with synonyms.

On the Superstore demo, the many-to-many fix brings Sales from $2,901,677 down to the correct $2,297,201.

Asking questions with Cortex

Type a question in the AI panel and Cortex fills in the rows, columns and values. SnowDash then runs that query with the viewer's own access, so the numbers come from Snowflake, not from the model. Explain writes a few bullets about the table on screen.

There's no gross margin percentage field, so it says so and uses Profit Ratio. Each number in the Explain bullets is checked against the table.
Clicking a bullet highlights the cells it refers to.
Ask
It suggests questions, checks member names against the data, and shows how it read the question so you can edit or refine it. It never changes a year you typed.
Explain
Long lists are summarized row by row, and any claim the table doesn't support is dropped.
What gets sent
Ask sends field names and types only. Explain sends the table you're looking at and tells you how much it sent.

On a test set of 70 questions it answered or correctly refused 69. A question costs about 0.013 credits and takes a few seconds. Some of the test questions:

  • Top 5 products by sales in 2020
  • Sales growth vs last year by category
  • What percent of sales comes from each department?
  • Average discount by regional manager
  • Vendas de produtos non food por departamento

AI settings for admins

AI is off until an admin turns it on. The admin page shows usage, feedback and failures, and limits can be changed there without redeploying.

Switches
One switch for all AI, one per feature, the roles allowed to use it, and whether results can be sent or only field names.
Daily caps
Credit limits per person and overall, with exceptions for specific people. Only the admin role can change them, and changes are logged.
Usage
Credits by day and by feature, each person's use against their cap, and the thumbs-up rate with recent comments.
Failures
Each failed AI call, with who made it, when, and the error.

Security and sharing

Everything runs inside Snowflake, under each viewer's own permissions.

Permissions
Queries run with the viewer's Snowflake roles, so nobody sees data they couldn't already see in Snowsight.
Ownership
Only the owner or an admin can overwrite or delete a SnowBook. Anyone else saves a copy.
Admins
Admins are defined by a Snowflake role.
Languages
English and Portuguese across screens, exports and AI answers, with a test that catches untranslated text.
Themes
Light and dark.
Errors
An expired session prompts a reload, and an error in the AI panel stays in the panel.