Using FactorPrism
Install the app, give it read access to one table or view, ask about a number, and read the Finding.
Quick start
- Install FactorPrism from the Snowflake Marketplace and open it from Apps in Snowsight.
- Look first, if you like. Choose Open the sample Finding on the Metrics screen to see a finished result. It needs no connection and no grants.
- Connect your data. Choose Ask a question, then Connect a table or Connect a view. Snowflake asks you to grant read-only access to the object you pick. FactorPrism then gives a quick read of the latest period.
- Check the drafted question. FactorPrism reads the columns and drafts the question: the number, the dates, the comparison, and the ways to slice it. Change any part in place.
- Run it. The answer comes back as a Finding and is saved to Metrics.
Administrator checklist
These items match the permissions and references the FactorPrism package declares.
Required for interactive analysis
- Install the app. If other account roles will launch it, grant the installed app's
APP_PUBLICapplication role to those roles. - Review diagnostic sharing. The package marks
ERRORS_AND_WARNINGSevent sharing as mandatory.USAGE_LOGSis optional. - Bind one source. In the app's References settings, bind either Source Data Table or Source Data View. Each reference requests
SELECTonly. Connect a table and Connect a view in the app open the same Snowflake authorization flow. - Check with an intended role. Launch the app with a role your users will use and confirm the source shows as connected on the Sources screen.
Optional
Grant these only when the matching feature is wanted:
CORTEX_USERdatabase role, in the app's Privileges tab, if you want Snowflake Cortex to write a plain-language interpretation of each Finding. See Snowflake Cortex.CREATE DATABASE, only to keep saved Findings in a database your account owns. Storage inside the app is the default.EXECUTE TASKplus the Monitoring Warehouse reference (USAGEon an existing warehouse), only for scheduled checks that the app starts itself. FactorPrism never creates or resizes a warehouse.
Data requirements
The source table or view must include:
| Column | What it is | Examples |
|---|---|---|
| Date | A DATE or TIMESTAMP column | ORDER_DATE, CREATED_AT |
| Number | A numeric column that adds up, or count the rows instead | REVENUE, UNITS, COST |
| Ways to slice it | One or more text columns, ideally in levels from broad to narrow | REGION › DIVISION › STATE, CATEGORY › PRODUCT, CHANNEL |
- At least two periods of data, and at least one column to slice by. Four to six weeks or more gives the clearest results.
- The number must add up across rows. For ratios, averages, prices, rates or point-in-time balances, prepare the intended calculation in a view first.
- A plan or budget column in the same table lets you explain actual versus plan instead of change over time.
Snowflake Cortex
Cortex is optional. When the CORTEX_USER database role is granted, Cortex drafts the question from your columns and writes a plain-language interpretation of each Finding. Every number, factor, contribution and next step is computed without it, and the SQL API never uses it.
To enable it, open the app's Privileges tab and grant CORTEX_USER, then choose Check again under Snowflake Cortex on the Sources screen. If the role is granted but Cortex still reports as off, the models may not be available in your region yet: an ACCOUNTADMIN can allow cross-region inference with ALTER ACCOUNT SET CORTEX_ENABLED_CROSS_REGION = 'ANY_REGION'; (see Snowflake's documentation).
Connecting data
FactorPrism reads one source object at a time, with read-only access.
- On Ask a question (or Sources), choose Connect a table or Connect a view.
- In Snowflake's authorization dialog, pick the database, schema and object.
- Confirm the
SELECTgrant. The app shows the connected source and gives a quick read of the latest period: one sentence on what moved and the factors behind it. Open it as a full Finding, or go on to the drafted question.
Read-only. Both references request SELECT only. FactorPrism cannot change or delete the source, and all analysis runs inside your Snowflake account.
To use different data, choose Use other data on Ask a question, or Choose a different table on Sources.
Asking a question
FactorPrism reads the columns and drafts the question as one sentence: which number, over which dates, compared with what, sliced which ways. Each part has an editor:
- Change the number: the metric column or a row count, and optionally a plan or budget column to compare against.
- Change the dates: the time grain (day, week, month, year) and the window.
- Change the comparison: by default, the average of the first few periods when there is enough history (up to four), otherwise the first period of the window. You can pick the first period alone or any specific earlier periods, averaged when there are several. An average gives steadier answers than a single period, because one period's own ups and downs carry into every comparison. The comparison must end before the window starts.
- Change the slices: each row is one way to slice the number, broad to narrow (Region › Division › State). Every level is searched, and in combination with the other rows.
Before you run confirms the date column, the number, the window and the slices, and flags anything missing. If the data is very large, FactorPrism says so when you run and suggests how to narrow it. Choose the run button to start. Most runs take ten seconds to a minute, depending on the data. Leave Save this Finding to Metrics on to keep it.
Reading a Finding
A Finding answers one question about one number. From top to bottom:
- The answer. What changed, by how much, and the factors that did it, in one sentence.
- Headline numbers. The baseline, the window average, the change, and the largest factor tied to one place.
- From the baseline to now, factor by factor. A bridge that adds up exactly. Blue adds, orange subtracts. "All other factors" is the sum of the smaller real factors, not a gap.
- Subcategory rows. When a cause hits part of a segment that no column names, for example a few dozen of a region's SKUs running hotter than the rest, the Finding shows it as one row such as West :: Subcategory A instead of losing it in "All other". Each one has passed a significance test that accounts for having been searched for, so noise alone does not produce them. When every member is large enough to matter on its own, the members are listed by name instead.
- The factors, largest first. Each factor acts at one place in the business and moves everything inside it: a region, a product, a product within a region, or the whole business when the move is broad-based. Each shows its size per period and its share of the change, and how strong its evidence is: very strong, strong, moderate or weak. Evidence says how far the factor stands clear of ordinary period-to-period noise, including the noise in the period you compare with. Start with the very strong and strong factors. A weak one could be noise, so check it before acting on it.
- When each factor was at work. Period by period, darker means larger.
- What to check next. Focused questions, in order, for the people who run each part of the business.
- Since the last run. When an earlier saved run of the same question exists, how the change and the largest factor have moved.
A factor's share can exceed 100% or be negative when factors offset each other. The bridge still closes to the net change. When the net change is small next to the movement inside it, the share is not shown, because it would mislead.
The toolbar has Copy summary (the answer, the factors and what to check next, ready to paste), Export (a PDF or HTML report), Edit question, and Schedule.
A factor's evidence
Choose See the evidence on any factor to open its page:
- Average effect, share of the change, and largest period.
- What it added, period by period, with where it starts marked.
- Where it acts. The path in your dimensions and why it sits at that level: higher would also move parts of the business that did not change, and lower explains less.
- Other places that explain it equally well. When the data cannot tell two readings apart, both are listed so you can check with each owner.
- Questions for the owner, with a button to copy them.
Metrics and history
Metrics is the home screen. It lists every saved Finding with its latest answer. Search, pin, rename or delete them, and open any one. With a saved question, Welcome back re-runs it on the latest data in one click.
A Finding compares itself with the newest earlier run of the same question. It checks that the source, number, units, time grain, comparison and slices all match first, so different questions are never presented as a trend.
On Sources, Prepare a backup file downloads your saved Findings, and Restore from a backup brings them into another installation.
Scheduled checks
Choose Schedule on a Finding, or open Scheduled checks, to re-run the question daily, weekly or monthly and keep a history of unusual moves. Quiet periods use a light check and skip the full analysis.
Automatic
An administrator chooses Grant task permission (EXECUTE TASK) and Choose a warehouse (an existing warehouse, USAGE only). Nothing runs until someone starts the check, and it can be paused from the same screen. FactorPrism cannot create, resize or suspend the warehouse.
SQL for your administrator to review
If your team prefers to own the task and history table, choose Write the SQL. FactorPrism writes it from the current question; a task administrator reviews and runs it in Snowsight. No task permission is granted to the app.
Cost. Scheduled checks use the warehouse you choose. Quiet periods cost one small aggregate query.
SQL API
The same analysis runs from SQL, so a Snowflake task, a pipeline or an approved agent can ask why a number moved. The API & SQL screen in the app fills these calls in from your current question. Full reference: API reference.
-- One row: did the latest period move more than usual, and if so, why? CALL FACTORPRISM.API.RUN_VERDICT(); -- The full ranked factor table for any window CALL FACTORPRISM.API.RUN_DECOMPOSITION( source_ref => 'SOURCE_VIEW', -- or 'SOURCE_TABLE' date_field => 'ORDER_DATE', metric_field => 'REVENUE', -- or NULL with use_row_count => TRUE use_row_count => FALSE, rollup => 'WEEK', hierarchies => PARSE_JSON('[["REGION","DIVISION","STATE"],["CATEGORY","PRODUCT"]]'), period_start => '2025-01-06', period_end => '2025-06-30');
Neither call uses Cortex. Every RUN_DECOMPOSITION is also saved and can be opened in the app.
Security and privacy
- Your data stays in your account. FactorPrism runs inside your Snowflake account, on your warehouse. Nothing is copied out.
- Read-only. The app requests
SELECTon the one object you choose. - Results stay in Snowflake. Saved Findings are stored in the app's own schema by default, or in a database you own if you grant
CREATE DATABASEand choose it on Sources. - Diagnostics carry no data. The required
ERRORS_AND_WARNINGSsharing and the optional usage events never include source rows, column names, values, factor labels, SQL, or notes. - Cortex stays in Snowflake. When enabled, Cortex runs inside Snowflake's security boundary. Nothing is sent to an outside AI provider.
More: Security and permissions · Privacy policy.
Troubleshooting
| What you see | What to do |
|---|---|
| No factor stood out | The metric moved within its usual period-to-period range, or the window is too short. Widen the window, try a coarser grain (week instead of day), or add a way to slice it. |
| Snowflake Cortex: off | Optional. Grant CORTEX_USER in Privileges, then choose Check again on Sources. If it stays off, allow cross-region inference (see Snowflake Cortex). |
| The table or view will not connect | Check that the object exists and that your role can select from it, then connect it again from Sources. |
| The comparison overlaps the dates | The comparison must end before the window starts. Use the default comparison, or move the window start later. |
| A run is slow | Use a coarser grain, a shorter window, or fewer levels in the slices. FactorPrism warns before it runs when the data is very large. |
Support
Email info@factorprism.com. For bugs and feature requests, email support with what you did and what you saw. Please leave out table names, customer names and values.