Facets & Interactions Flashcards
Interaction Types
There are 2 types: results interaction and selection interaction
Interaction was formerly called binding
Create Interactions with Clicks
Interactions are the most powerful way to specify relationships between different queries on your dashboard
Creating the right syntax for an interaction can be complex
With the Advanced Interaction Editor, you can create, edit, and preview your interactions with clicks
Each interaction must be in the right place in the JSON or SAQL for an individual widget or query
Cross-Dataset Faceting with Connected Data Sources
To facet queries from different datasets, you need to connect them using common fields
Faceting only works on the fields used to define the connection
By default, queries from the same dataset are faceted, automatically filtering each other
Create an Interaction
- Click Advanced Editor in the widget properties panel
- Click Select a query and select the one you want
- Click Select data…
- Select Row, Column, or Cell
- Select the desired options
- Use Preview to see details without leaving the Editor - Select the interaction type (Result is the default)
- Click More Options to set a default value or change the data serialization function
- Copy your interaction
- Paste it into the JSON or SAQL
- Click Save
How Bindings are Different from Facets
- More programmatic and provide more ways to specify interactions
- Can dynamically modify a query, set an initial filter selection, or change a widget’s appearance
- Each is unidirectional – it affects other queries, but other queries don’t affect it
Ex: You can change the measure in a query based on a selection in a custom query
Ex: You can change the color of the metric in a number widget based on whether its value is high, medium, or low
Result Interaction
Update a query based on the RESULTS of another query
Default interaction type when using the Advanced Editor
Typically used to…
- Define intermediate results for a complex calculation
- Set an initial filter selection for a dashboard based on a characteristic of the logged-in user
- Dynamically change the display of a widget based on the results of a query
Selection Interaction
Update a query based on the SELECTION in another query
Evaluated each time the user selects something in a widget
Use a selection interaction to…
- specify interactions b/w widgets from different datasets
- specify the measures, groupings, and other aspects of a query
- set widget display properties for some widget types
Configure Cross-Dataset Faceting
- In dashboard edit mode, click “…” and click Connect Data Sources
- Click New Connection and enter a name for the connection
- Click Choose Data Source 1 to select the first data source
- Choose one field from the data source
- Click Choose Data Source 2 to select the second source, then choose a field
- To add another data source, click Add Data Source; this option is only visible after you connect 2 data sources
- Click Save