In Looker pre-3.18, the url is a long list of parameters which includes the fields, filters, filter values, pivots, row limits, column limits, total settings, row total settings, and sorts.
In Looker 3.18 and later the url is hashed and stored in a slug, which is used to generate the query. No matter the version, the following parameters can be used to generate queries.
Important: Any field in the pivots or sorts list must also reside in the fields list.
A general url with all of the parameters:
https://company.looker.com/explore/model/explore_name?fields=view.field_1,view.field_2,view.count
&f[view.filter_1_dimension]={{ value }}
&f[view.filter_2_on_date]=last+60+days
&pivots=view.field_2
&limit=50
&column_limit=20
&total=true
&row_total=right
&sorts=view.field_1,view.count+desc
fields=view_name.set_name*
f[view.dimension_name]
The code above this post is obsolete, as we now allow folks to reference the current filters placed on a given dimension or measure and pass them along in the HTML, which works great for passing filters between dashboards.
The code looks like this:
_filters[‘field_name’]
For example:
dimension: company { type: string sql: ${TABLE}.company
link: {
label: “Activity Overview”
url: “/dashboards/123?Date={{ _filters[‘user.created_at’] | url_encode }}”
}
}