Power BI interactions
Design Vega marks that cooperate with Power BI tooltips, selections, cross-highlighting, and context-menu actions.
How interaction integration works
The Vega view produces marks, data items, events, and tooltip values. Ataytis Vega Studio resolves those items back to Power BI row identities and passes supported actions to the Power BI host. Reliable interaction therefore depends on marks retaining a resolvable connection to rows from dataset.
| Interaction | Studio behavior | Authoring requirement |
|---|---|---|
| Tooltips | Converts Vega tooltip values into Power BI tooltip items and applies Power BI numeric or date formatting where the field can be matched. | Set a Vega tooltip value on an interactive mark and keep the item linked to dataset rows. |
| Selection / cross-filtering | Resolves clicked Vega items to Power BI selection identities. Simple mode selects the rows represented by the item; advanced mode can resolve rows through a filter expression. | Use data-backed marks and keep selection enabled. Respect the configured data-point limit. |
| Cross-highlighting | Adds base, highlight, status, and comparator fields for measures when Power BI supplies highlight values. | Use the generated highlight fields in encodings or transforms. |
| Context menu | Shows the Power BI context menu and attaches a row identity when exactly one row can be resolved. | Trigger the context menu over a data-backed item. |
Power BI tooltips
A Vega tooltip can be a primitive value or an object of label/value pairs. Object keys become tooltip labels. When a key matches a numeric or date field from the Power BI dataset and the value is compatible, the Studio can use the Power BI format string for display.
"tooltip": {
"signal": "{
'Category': datum['Category'],
'Value': datum['Value']
}"
}Selection-aware styling
Use __selected__ to style the report's current selection state. A value of neutral means there is no active selection, on means the row is selected, and off means another row is selected. The default maximum selection size is 50 data points unless the visual's interaction configuration changes it.
datum['__selected__'] === 'off' ? 0.25 : 1Cross-highlight-aware marks
For a measure named Sales, the Studio can expose Sales__highlight, Sales__highlightStatus, and Sales__highlightComparator. These fields let a specification draw base and highlighted portions separately or adjust opacity and color without constructing complex comparison expressions.
Screenshot placeholder
Selection and cross-highlight states
Show the same visual in neutral, selected, and cross-highlighted states alongside another Power BI visual that drives the interaction.


