Stay organized with collectionsSave and categorize content based on your preferences.
A view represents a table of data in Looker, whether that table is native to your database or was created using Looker'sderived tablefunctionality. Views are typically declared inview files, with one view per file.
There are also a number of view-level settings, which are described on this page.
Example usage
Hover over a parameter name to see a quick description. Click a parameter to visit its reference page.
When a parameter can be set to one of several specific options, the default value is listed first.
Creates a data test to verify your model's logic. The project settings include an option torequire data tests. When this is enabled for a project, developers on the project must run data tests before deploying their changes to production. This parameter hasexplore_sourceandassertsubparameters.
Specifies an ordered sequence of steps to create a PDT on a database dialect that requires custom DDL commands. This parameter has the subparametersql_step.
Added 21.4Makes the derived table into anincremental PDT. Theincrement_keyspecifies the time increment for which fresh data should be queried and appended to the PDT.
Added 21.4Used in conjunction with theincrement_keyparameter forincremental PDTs.Theincrement_offsetspecifies the number of previous time periods (at the increment key's granularity) that are rebuilt to account for late arriving data.
Adds a plus sign (+) in front of an existing view name to add a refinement to the existing view. See theLookML refinementsdocumentation page for more information and use cases.
Indicates that the current refinement is the final refinement allowed for the view. See theLookML refinementsdocumentation page for more information and use cases.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-22 UTC."],[],[],null,["# View parameters\n\n\u003cbr /\u003e\n\nA view represents a table of data in Looker, whether that table is native to your database or was created using Looker's [derived table](/looker/docs/derived-tables) functionality. Views are typically declared in [view files](/looker/docs/model-and-view-files#view_files), with one view per file.\n\nWithin each view are field definitions, each of which typically corresponds to a column in the underlying table or a calculation in Looker. These fields are described in the [field reference](/looker/docs/reference/param-field), [dimension type reference](/looker/docs/reference/param-dimension-filter-parameter-types), and [measure type reference](/looker/docs/reference/param-measure-types).\n\nThere are also a number of view-level settings, which are described on this page.\n\nExample usage\n-------------\n\nHover over a parameter name to see a quick description. Click a parameter to visit its reference page.\nWhen a parameter can be set to one of several specific options, the default value is listed first. \n\n```\n## STRUCTURAL PARAMETERS\n\n/looker/docs/reference/param-model-include:\"filename_or_pattern\"\n## Possibly more include declarations\n\n/looker/docs/reference/param-model-test: test_name{\n /looker/docs/reference/param-model-test: explore_name {\n # Desired subparameters (described on `test` page)\n }\n /looker/docs/reference/param-model-test: assert_statement {\n /looker/docs/reference/param-model-test:Looker expression ;;\n }\n # Possibly more assert declarations\n}\n## Possibly more test declarations\n\n/looker/docs/reference/param-view-view: view_name {\n /looker/docs/reference/param-view-extension: required\n /looker/docs/reference/param-view-extends: [view_name, view_name, ...]\n\n (/looker/docs/reference/param-field-dimension | /looker/docs/reference/param-field-dimension-group | /looker/docs/reference/param-field-measure | /looker/docs/reference/param-field-filter):field_name{\n # Desired field parameters (described on Field Parameters page)\n }\n # Possibly more field declarations\n\n /looker/docs/reference/param-view-set: set_name{\n /looker/docs/reference/param-view-set[field_or_set, field_or_set, ...]\n }\n # Possibly more set declarations\n\n /looker/docs/reference/param-view-drill-fields: [field_or_set, field_or_set, ...]\n\n # DISPLAY PARAMETERS\n\n /looker/docs/reference/param-view-label: \"desired label\"\n /looker/docs/reference/param-view-fields-hidden-by-default: yes | no\n\n # FILTER PARAMETERS\n\n /looker/docs/reference/param-view-suggestions: yes | no\n\n # QUERY PARAMETERS\n\n /looker/docs/reference/param-view-required-access-grants: [access_grant_name, access_grant_name, ...]\n /looker/docs/reference/param-view-sql-table-name: table_name ;;\n\n # DERIVED TABLE PARAMETERS\n\n /looker/docs/reference/param-view-derived-table: {\n /looker/docs/reference/param-view-cluster-keys: [\"column_name\", \"column_name\", ...]\n /looker/docs/reference/param-view-create-process: {\n /looker/docs/reference/param-view-create-process:SQL query ;;\n }\n /looker/docs/reference/param-view-datagroup-trigger: datagroup_name\n /looker/docs/reference/param-view-distribution: \"column_name\"\n /looker/docs/reference/param-view-distribution-style: all | even\n /looker/docs/reference/param-view-explore-source: explore_name {\n # Desired subparameters (described on `explore_source` page)\n }\n /looker/docs/reference/param-view-increment-key: \"column_name\"\n /looker/docs/reference/param-view-increment-offset: N\n /looker/docs/reference/param-view-indexes: [\"column_name\", \"column_name\", ...]\n /looker/docs/reference/param-view-interval-trigger: \"N (seconds | minutes | hours)\"\n /looker/docs/reference/param-view-materialized-view: yes | no\n /looker/docs/reference/param-view-partition-keys: [\"column_name\", \"column_name\", ...]\n /looker/docs/reference/param-view-persist-for-for-derived-table: \"N (seconds | minutes | hours)\"\n /looker/docs/reference/param-view-publish-as-db-view: yes | no\n /looker/docs/reference/param-view-sortkeys: [\"column_name\",\"column_name\", ...]\n /looker/docs/reference/param-view-sql-for-derived-table: SQL query ;;\n /looker/docs/reference/param-view-sql-create: {\n SQL query ;;\n }\n /looker/docs/reference/param-view-sql-trigger-value: SQL query ;;\n /looker/docs/reference/param-view-table-compression: GZIP | SNAPPY\n /looker/docs/reference/param-view-table-format: PARQUET | ORC | AVRO | JSON | TEXTFILE\n }\n}\n\n## REFINEMENT PARAMETERS\nview: /looker/docs/lookml-refinements {\n /looker/docs/lookml-refinements#final: yes\n}\n```\n\nParameter definitions\n---------------------"]]