About runtime filters
Use runtime filters to filter an embedded Answer or Pinboard.
Runtime filters allow you to filter an Answer or Pinboard through parameters you pass in the URL to filter the data that is returned. You can use them with the data API or with embedding of Answers or Pinboards.
This example shows the URL to access a Pinboard with a filter. Here the Runtime Filter is operating on the column "Color" and will only return values that are equal (EQ) to "red".
This example shows the URL for a REST API call with a filter.
Here the Runtime Filter is operating on the column
Category and returning values that are equal to
http://10.77.144.40:8088/callosum/v1/tspublic/v1/pinboarddata? id=e36ee65e-64be-436b-a29a-22d8998c4fae&col1=Category &op1=EQ&val1=mfgr%2324
ThoughtSpot will try to find a matching column from the Pinboard or visualization being accessed, using the
col field as
You can add any number of filter sets by incrementing the parameters (e.g.
val2, etc.) For operators that support more than one value you can pass
If the Pinboard or Answer you’re filtering already has one or more filters applied, the Runtime Filter(s) will act as an
This means that the data returned must meet the conditions of all filters - those supplied in the runtime filter, and those included in the Pinboard or visualization itself.
You can use runtime filters on these data types:
Note that for
DATE_TIME values, you must specify the date in epoch time (also known as POSIX or Unix time).
You can use Runtime Filters alongside the REST API and Embedding to create dynamic controls in your Web portal. For example, you could use the REST API to get a list of possible filters for a visualization. Then use that data to populate a select list on your Web portal. When a user makes a selection, you would then pass it as a Runtime Filter, and the result returned will apply the filter.
Runtime Filters do not work directly on top of tables. You must create a Worksheet if you want to use Runtime Filters. This means that the Pinboard or visualization on which you apply a runtime filter must be created on top of a Worksheet.
If the Worksheet was created from an Answer (it is an aggregated Worksheet), Runtime Filters will only work if the answer was formed using a single Worksheet. If the Answer from which the Worksheet was created includes raw tables or joins multiple Worksheets, you won’t be able to use Runtime Filters on it. This is because of the join path ambiguity that could result.
Runtime Filters do not allow you to apply “having” filters using a URL.
You cannot apply a Runtime Filter on a Pinboard or visualization built on tables whose schema includes a chasm trap. See the ThoughtSpot Administrator Guide for details on chasm traps and how ThoughtSpot handles them.