Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I' developing custom visual and want to support highlights. Here is my capabilities.json code:
{
"dataRoles": [
{
"displayName": "Row",
"name": "row",
"kind": "Grouping"
},
{
"displayName": "Column",
"name": "column",
"kind": "Grouping"
},
{
"displayName": "Tile Title",
"name": "tileTitle",
"kind": "Grouping"
},
{
"displayName": "Color",
"name": "color",
"kind": "Grouping"
},
{
"displayName": "Total Cost",
"name": "totalCost",
"kind": "Grouping"
},
{
"displayName": "Total Gap",
"name": "totalGap",
"kind": "Grouping"
},
{
"displayName": "Is Header",
"name": "isHeader",
"kind": "Grouping"
},
{
"displayName": "AnalysisId",
"name": "analysisId",
"kind": "Grouping"
}
],
"dataViewMappings": [
{
"categorical": {
"categories": {
"for": {"in" : "analysisId"}
},
"values": {
"select": [
{ "bind": { "to": "totalCost" } },
{ "bind": { "to": "totalGap" } },
{ "bind": { "to": "isHeader" } },
{ "bind": { "to": "color" } },
{ "bind": { "to": "tileTitle" } },
{ "bind": { "to": "column" } },
{ "bind": { "to": "row" } }
]
}
}
}
],
"supportsHighlight": true,
"suppressDefaultTitle": true
}Question is how do I access highlights array? This is not helping, as:
let highlights = dataView.categorical.categories[0].highlights;
throws an error:
"Property 'highlights' does not exist on type 'DataViewCategoryColumn'.". I have no idea how to make PowerBI use
'DataViewValueColumn' type instead of 'DataViewCategoryColumn'.
Can anyone point me in the right direction?
Solved! Go to Solution.
As shown in the documentation highlights array will be added to values: options.dataViews[0].categorical.values[0].highlights
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
As shown in the documentation highlights array will be added to values: options.dataViews[0].categorical.values[0].highlights
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |