CertSafari
    Snowflake SnowPro Advanced: Data Analyst (DAA-C01)· Lessons

    Domain 4 · Lesson 17/19

    Snowsight dashboards: tiles, filters, roles and BI connections

    Given a use case, create reports and dashboards to meet business requirements.

    22 min read
    9.33% of exam
    6 sources
    Published 20 Oct 2026
    Docs as of 4 Oct 2026

    What you will be able to do

    • Build a Snowsight dashboard from worksheet-query tiles and set the role and warehouse its queries run under
    • Write tile queries with clear aliases and query-level sorting so charts and ordering hold up when filters change
    • Reference :daterange and :datebucket so one control drives every tile
    • Create a custom filter with a keyword, list or query values and single or multi-select, and know who can see, edit and pay for it
    • Explain why the same tile shows different rows or masked values to different roles
    • Apply the same role-and-warehouse rule to an external BI tool connection

    Key concept

    Tile session context — Every dashboard tile query runs in its own session under the role and warehouse set for the dashboard. The role decides which objects the query can read, which rows come back and which values are masked. The warehouse supplies the compute and carries the cost.

    1.Dashboards, tiles and the context they run in

    A Snowsight dashboard is a set of tiles, and each tile is a worksheet query whose results appear as a chart or a table. To start a dashboard, go to Projects » Dashboards, select + Dashboard and name it. You can also move an existing worksheet onto a dashboard. Moving a worksheet does more than copy it: the worksheet leaves your worksheet list and lives inside the dashboard from then on. If you had shared that worksheet, the people you shared it with lose access and their links stop working. To add a new tile, select +, choose New Tile from Worksheet, write the query and select the Return to button, which carries your dashboard's name.

    Removing a tile can be done in two ways, and only one of them is safe to undo. Unplace Tile takes the tile off the dashboard but keeps its query, so you can add it back from the Add tile menu. Delete permanently removes the tile together with its query. If a table tile and a chart tile share that query, both tiles are deleted.

    Removing a tile: what survives
    Tile menu actionQuery kept?Other tiles on the same query
    Unplace TileYes, re-addable from the Add tile menuUnaffected
    DeleteNo, cannot be undoneAlso deleted

    Context decides whether any tile runs at all. Snowsight sets context differently from a SQL session, where you would issue USE statements (see Session context: USE and the context functions). On a dashboard, the context selector sets the role and the warehouse for the dashboard's queries. The role decides what data a tile can show, and the warehouse decides what the tile costs. A finance dashboard with twelve tiles on FINANCE_MART needs two things to run. First, the selected role must hold SELECT on every table or view the tiles read. Second, that role must be able to use the selected warehouse, because otherwise the queries have no compute. Nothing beyond that is required. You do not need ACCOUNTADMIN, which only gives a dashboard more power than it should have. You do not need a multi-cluster warehouse just because several tiles run when the dashboard opens. Viewers do not store a personal database context either. Database and schema belong to the tile query, so set them in the tile's worksheet or write fully qualified names such as SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.ORDERS.

    Dashboards ignore secondary roles on purpose, because it keeps governance simple. A privilege error on a tile therefore points to the primary role. A suspended warehouse or a cached result is not the cause. The fix is to grant the privilege to the role the tile runs as, or to switch the context to a role that already holds it. The same rule applies to sharing. A colleague viewing a shared dashboard must use the same role as the session context of its queries.

    Checkpoint 1 of 10· Check yourself

    A dashboard has a table tile and a chart tile that use the same query. An analyst wants to remove the table tile for now, keep the chart tile working, and maybe add the table back next quarter. What should they do?

    Checkpoint 2 of 10· Exam question

    A new Snowsight dashboard for the finance team will run twelve tiles against the FINANCE_MART database. The owner wants it to run reliably for viewers. Select TWO items that must be in place for the tile queries to execute.(Select 2)

    0 of 2 selected

    Checkpoint 3 of 10· Exam question

    Priya's user has DEFAULT_SECONDARY_ROLES = ('ALL'). Her primary role ANALYST has no grants on FINANCE.GL, but her secondary role FINANCE_READ has SELECT on it. A dashboard tile on FINANCE.GL fails with an insufficient privileges error. What is the cause?

    Sources12

    2.Naming, sorting and filtering tile queries

    A chart refers to query columns by name, so column aliases are part of the tile's contract. A chart keeps updating as long as the columns it uses still appear in the results. If someone renames a column alias, the chart reports a missing column until you point it at the new name. Choose short, stable aliases such as orders or bucket when you first write the query, and use the same names in every tile that shows the same measure. Clear names also make the dashboard easier to work with. Snowflake remembers table aliases you have used and suggests them in autocomplete, and Format query tidies a long tile query before you hand it on.

    Sort in the SQL whenever the order is part of the requirement. Suppose viewers expect the highest revenue on the left of a 40-product bar chart. Put ORDER BY in the tile query so the order is recomputed every time a filter changes the data, and add LIMIT if the requirement is a top-N list. Sorting a result column from the grid is a different operation. It applies to all results, not only the rows on screen, and it uses compute. Snowsight bills that compute to the warehouse that ran the query. You can find these runs in Query History by the SQL text snowsight_transform_cte. Display-only changes are free: thousands separators, percentages, decimal precision and date formatting cost nothing.

    Filtering follows the same rule. A WHERE clause in the tile query sets the data the business asked for. Dashboard filters, covered next, let viewers narrow that data further without editing the SQL.

    Checkpoint 4 of 10· Check yourself

    After a teammate edits a tile query and changes the alias revenue to total_revenue, the tile's bar chart still uses revenue on its Y axis. What happens the next time the dashboard runs?

    Sources32

    3.System filters: :daterange and :datebucket

    Two system filters are available to every role, and they let a single control on the dashboard drive every tile. :daterange limits a date column to a range such as Last 7 days, Last 12 months, All time or a custom range, and its default is Last day. :datebucket groups aggregated data by Second, Minute, Hour, Day, Week, Month, Quarter or Year, and its default is Day. No one can edit or drop these two filters. The date range filter always works in UTC, whatever TIMESTAMP_INPUT_FORMAT is set to. When a tile query references a filter keyword, a filter button appears at the top of the dashboard. If every tile includes = :daterange in its WHERE clause, changing that one button changes them all.

    Count orders per period: :daterange in WHERE, :datebucket in SELECT and GROUP BYsql
    SELECT
        COUNT(O_ORDERDATE) as orders,
        :datebucket(O_ORDERDATE) as bucket
    FROM
        SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.ORDERS
    WHERE
        O_ORDERDATE = :daterange
    GROUP BY
        :datebucket(O_ORDERDATE)
    ORDER BY
        bucket;

    Filter keywords have strict syntax rules. A filter can only be compared with an equals sign, so LIKE and CONTAINS will not work with one. You can also write a filter as a function in the SELECT list, as :datebucket(O_ORDERDATE) does above. The column you filter must match the filter's type, and for a system filter that type is TIMESTAMP. Filters do not work inside stored procedures or UDFs.

    Apply and Save do different things, and confusing them is the most common filter mistake. Apply runs the dashboard with the new filter value so you can check the result, and only you see it. Save keeps the value as the default that every other user of the dashboard gets. An editor who sets a filter to EMEA, selects Apply and then shares the link has shared a dashboard that still opens on the old default. This difference also lets you test without changing anything for others. You can Apply All time to look at the full history, then set Last 7 days and Save it, so the dashboard does not scan years of data each time someone opens it.

    Checkpoint 5 of 10· Fill the gap

    This sample query from the Snowflake docs counts orders so that one dashboard control can limit every tile to the period a viewer picks. Which keyword goes in the blank?

    SELECT
      COUNT(O_ORDERDATE) as orders, O_ORDERDATE as date
    FROM
      SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.ORDERS
    WHERE
      O_ORDERDATE =  ? 
    GROUP BY
      :datebucket(O_ORDERDATE), O_ORDERDATE
    ORDER BY
      O_ORDERDATE
    LIMIT 10;

    Sources4

    4.Custom filters: keyword, values and selection mode

    A custom filter changes a query's results without anyone editing the query. You can only create custom filters in Snowsight. ACCOUNTADMIN decides who may create them by opening the Filters dialog, selecting Edit Permission and choosing roles. To create a filter, open the filters menu on a dashboard, select + Filter and fill in the following fields:

    • Display Name: the label viewers see.
    • SQL Keyword: a unique :<string> with no spaces, for example :page_path.
    • Role and Warehouse: used to run and refresh the query that fills the filter's values. The role must have USAGE on that warehouse.
    • Options via: a static List of name/value pairs, or a Query that must return the columns name and value, and may return description.
    • Value Type: Text or Number, which must match the column you filter.

    The selection settings decide what SQL the keyword turns into, and that is how you meet a requirement such as "pick several regions, or all of them quickly". Turn on Multiple values can be selected for multi-select. Turn on Include an "All" option for a one-click choice of everything. Then decide whether All means any value at all, or only the values in the list.

    What a custom filter's selection becomes in the tile's SQL
    Filter option selectedSQL used
    List item<col> = <list_item>
    Multiple list items selected<col> IN (<list_item>, <list_item>)
    All, with Any value specifiedtrue
    All, with Any value in list of options specified<col> IN (<list_item>, <list_item>, ... )
    Other<col> NOT IN(<list_item>, <list_item>, ... )

    Ownership and visibility are separate settings. Anyone who has the filter's role can edit or delete it, and ACCOUNTADMIN can edit every filter. If the filter's role is dropped, ownership does not move to the role that dropped it, and ACCOUNTADMIN has to assign a new role. Since everyone can see every filter, be careful with query-based filters. Their query runs as the user who created or last modified the filter, so the option list must not reveal protected values.

    Checkpoint 6 of 10· Match them up

    A viewer picks a value from a custom filter on a dashboard. Match each selection to the SQL that the filter keyword turns into in the tile query.

    Tap a term, then the definition that fits it.

    Sources4

    5.Row access and masking policies in tiles

    Governance policies explain why two people see different numbers from the same tile SQL. A row access policy is a boolean expression bound to a table or view, and Snowflake evaluates it for every row when the query runs. The query returns only the rows where the expression is TRUE. When the expression calls CURRENT_ROLE(), the result depends on the role the tile runs as. So an it_admin tile returns employee rows and an ANALYST tile returns none, with no error.

    The simplest row access policy: rows are visible only to it_adminsql
    CREATE OR REPLACE ROW ACCESS POLICY rap_it
    AS (empl_id varchar) RETURNS BOOLEAN ->
      'it_admin' = current_role()
    ;

    Two things are evaluated, and each uses a different role. The policy owner's role is used to read anything the policy references, such as a mapping table of sales managers and regions. As a result, the dashboard viewer does not need access to that mapping table. The context functions inside the expression, however, still return the querying role, and that role determines which rows the tile shows. When a policy uses a mapping table, a regional tile shows Bob only North America rows and shows Alice every region.

    Dynamic Data Masking works on values instead of rows. A masking policy is applied when the query runs, everywhere the column appears. Depending on the conditions and the querying role, the result is the plain-text value, a partly masked value or a fully masked value. The policy below shows ANALYST the real string and shows every other role '********'. A data steward using PII_ADMIN might see full email addresses while ANALYST sees asterisks in the same tile, if the policy unmasks for PII_ADMIN and not for ANALYST. Snowsight's chart renderer and the result cache play no part in this. Masking also does not depend on how powerful a role is. A masking policy can stop even ACCOUNTADMIN or SECURITYADMIN from seeing the plain text.

    Masking policy that unmasks only for the ANALYST rolesql
    CREATE OR REPLACE MASKING POLICY mask_string AS (val string) RETURNS string -> CASE WHEN CURRENT_ROLE() IN ('ANALYST') THEN val ELSE '********' END;

    Checkpoint 7 of 10· Fill the gap

    A tile reading the employee table should return rows only when the dashboard runs as the it_admin role. Every other role should get zero rows and no error. Which function completes this row access policy from the Snowflake docs?

    CREATE OR REPLACE ROW ACCESS POLICY rap_it
    AS (empl_id varchar) RETURNS BOOLEAN ->
      'it_admin' =  ? ()
    ;

    Checkpoint 8 of 10· Exam question

    Analysts open a dashboard tile that lists customer_email. Under the ANALYST role they see only '*****', while a data steward using PII_ADMIN sees full addresses. The tile SQL is identical for both. What explains the difference?

    Sources56

    6.Choosing the tile type for the requirement

    Each tile shows its query as either a table or a chart. Snowsight offers five chart types: bar, line, scatterplot, heat grid and scorecard. Each query can use only one chart type at a time, so a tile that needs two views needs a second tile. A table tile can produce a chart tile from the same query through Edit Query » Chart. Comparing the chart types belongs to Snowsight chart types and encodings. One choice comes up in requirement wording all the time. When the brief says "show this quarter's revenue as one headline number", use a scorecard tile on a query that returns a single aggregate. A bar or line chart would bury that number among other data points.

    Charts can also bucket and aggregate without changing the SQL. You can switch a date column from day to week or month in the chart settings, and pick sum, average, count, min, max, median or mode. Use this for one tile's display. Use :datebucket when every tile on the dashboard should regroup together.

    Checkpoint 9 of 10· Check yourself

    Product managers want two views on one dashboard: monthly revenue as a bar chart, and this quarter's total revenue as one headline number. A tile already shows the bar chart. How do you meet the requirement?

    Sources3

    7.Connecting external BI tools

    An external BI tool reaches Snowflake through a driver or connector, and every query it sends runs under a role and a warehouse, just like a tile. Everything above therefore applies. The role's privileges decide which objects the tool can read. Row access policies return only the rows that role is allowed to see. Masking policies decide whether a column arrives as plain text or as asterisks, and they apply to any query operator, not only Snowsight users. The warehouse runs the queries and is charged for them.

    These facts lead to a simple setup. Give the BI tool its own service user, a dedicated role granted only the reporting objects, and its own warehouse. With this setup, the policies treat the tool as a known role, the tool's compute shows up separately from analysts' worksheets, and a refresh storm from a published report cannot slow down other workloads. If the tool connects with a personal user that has a broad role, its reports change whenever that person's grants change.

    Checkpoint 10 of 10· Check yourself

    Your external BI tool connects through a driver as a service user whose role is BI_REPORTING. That role has SELECT on SALES, the reporting table. SALES is protected by a row access policy that looks up a mapping table of managers and regions, and BI_REPORTING has no grant on that mapping table. What happens when a published report queries SALES?

    Sources65

    Practise it for real

    Build an orders dashboard where one date control drives the tile, and save a sensible default for viewers.

    1. 1.In Projects » Dashboards, select + Dashboard, name it, and set a role and warehouse in the context selector.

      Why: Every tile query runs under this role and warehouse.

      You should see: An empty dashboard with your role and warehouse shown in the context selector.

    2. 2.Select +, then New Tile from Worksheet, paste the :datebucket/:daterange ORDERS query, run it, and select the Return to button that carries your dashboard's name.

      Why: The filter keywords in the query create the dashboard's date controls.

      You should see: A tile appears, and date range and group-by filter buttons appear at the top.

    3. 3.Set the group-by filter to Week and the date range to All time, then select Apply.

      Why: Apply lets you look at the full history without changing anyone else's view.

      You should see: Weekly order counts across the whole dataset.

    4. 4.Set the date range to Last 7 days, select Apply, then select Save.

      Why: Save sets the default that other users of the dashboard get.

      You should see: The dashboard reopens on Last 7 days for everyone who opens it.

    Stuck? Get a nudge

    If the tile errors with insufficient privileges, check the primary role in the context selector. Secondary roles do not apply on dashboards.

    Sources

    (6)

    Every claim above is drawn from one of these pages, quoted as it was written on the date shown.

    1. 1.
      “Use the context selector to specify the role and warehouse to use for running the queries in the dashboard.”
      ↩︎ Dashboards, tiles and the context they run in
      “the worksheet is removed from the list of worksheets and can only be accessed from the dashboard.”
      ↩︎ Dashboards, tiles and the context they run in
      “The tile is removed from the dashboard, but remains available to add to the dashboard from the Add tile menu.”
      ↩︎ Dashboards, tiles and the context they run in
      “To view shared dashboards, the Snowflake user must use the same role as the session context for the queries that drive the dashboard.”
      ↩︎ Dashboards, tiles and the context they run in
      “The queries that drive dashboards in Snowsight use unique sessions with assigned roles and warehouses.”
      ↩︎ Key concept
      “Dashboards run exclusively with the user’s primary role, regardless of the value set for DEFAULT_SECONDARY_ROLES.”
      ↩︎ Exam trap 1
      “Deleting a tile from a dashboard also deletes the underlying queries.”
      ↩︎ Exam trap 5
      “Dashboards run exclusively with the user’s primary role, regardless of the value set for DEFAULT_SECONDARY_ROLES.”
      ↩︎ Prediction
      “select Unplace Tile. The tile is removed from the dashboard, but remains available to add to the dashboard from the Add tile menu.”
      ↩︎ Checkpoint
    2. 2.
      “you can reference objects in the schema without fully qualifying the object names in your query.”
      ↩︎ Dashboards, tiles and the context they run in
      “Snowflake tracks table aliases and suggests them as autocomplete options.”
      ↩︎ Naming, sorting and filtering tile queries
      “when you sort a column by ascending or descending order using the column options, the changes affect all of your results”
      ↩︎ Naming, sorting and filtering tile queries
      “The compute cost is billed against the same warehouse used to run the query.”
      ↩︎ Naming, sorting and filtering tile queries
    3. 3.
      “If a column name changes, you must update the chart to use the new column name.”
      ↩︎ Naming, sorting and filtering tile queries
      “Each query supports one type of chart at a time.”
      ↩︎ Choosing the tile type for the requirement
      “Charts can bucket by date, week, month, and year for date columns.”
      ↩︎ Choosing the tile type for the requirement
      “If a column name changes, you must update the chart to use the new column name. Charts indicate any columns that cannot be found.”
      ↩︎ Checkpoint
    4. 4.
      “The date range filter always uses the UTC time zone and is not affected by the TIMESTAMP_INPUT_FORMAT parameter.”
      ↩︎ System filters: :daterange and :datebucket
      “These filters cannot be edited or dropped.”
      ↩︎ System filters: :daterange and :datebucket
      “You can only use an equals sign as the comparator for a filter, and as such, cannot use a filter with LIKE or CONTAINS.”
      ↩︎ System filters: :daterange and :datebucket
      “For a system filter, the column must be a TIMESTAMP data type.”
      ↩︎ System filters: :daterange and :datebucket
      “You can only use Snowsight to grant roles the ability to create custom filters.”
      ↩︎ Custom filters: keyword, values and selection mode
      “Use the format :<string>, without spaces.”
      ↩︎ Custom filters: keyword, values and selection mode
      “Must return the columns name and value.”
      ↩︎ Custom filters: keyword, values and selection mode
      “turn on the toggle for Multiple values can be selected.”
      ↩︎ Custom filters: keyword, values and selection mode
      “Each custom filter has an associated role. Anyone with that role can edit or delete the filter.”
      ↩︎ Custom filters: keyword, values and selection mode
      “The query used to populate a list of filter options is run as the user that created (or last modified) the filter.”
      ↩︎ Custom filters: keyword, values and selection mode
      “The virtual warehouse will run the underlying query according to the configured schedule, even if no user has the filter open in their web browser.”
      ↩︎ Custom filters: keyword, values and selection mode
      “When you select Save, the changes you made to the dashboard are saved and available to other users of the dashboard.”
      ↩︎ Exam trap 2
      “Anyone in your account can view and use a custom filter after it is created.”
      ↩︎ Exam trap 3
      “A custom filter has an associated role, but that role does not limit filter visibility.”
      ↩︎ Prediction
      “the column to which the filter applies can have any value in the results, whether or not the value exists in the filter list”
      ↩︎ Checkpoint
    5. 5.
      “the query output only contains rows based on the policy definition evaluating to TRUE”
      ↩︎ Row access and masking policies in tiles
      “Snowflake evaluates the policy expression by using the role of the policy owner, not the role of the operator who executed the query.”
      ↩︎ Row access and masking policies in tiles
      “The row access policy supports contextual data access by role or custom entitlements.”
      ↩︎ Connecting external BI tools
      “Snowflake evaluates the policy expression by using the role of the policy owner, not the role of the operator who executed the query.”
      ↩︎ Exam trap 4
      “Snowflake evaluates the policy expression by using the role of the policy owner, not the role of the operator who executed the query.”
      ↩︎ Checkpoint
    6. 6.
      “At query runtime, the masking policy is applied to the column at every location where the column appears.”
      ↩︎ Row access and masking policies in tiles
      “can prohibit privileged users with the ACCOUNTADMIN or SECURITYADMIN role from unnecessarily viewing data.”
      ↩︎ Row access and masking policies in tiles
      “Snowflake query operators may see the plain-text value, a partially masked value, or a fully masked value.”
      ↩︎ Connecting external BI tools

    Spotted a mistake, or was something unclear? Tell us.