Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi folks,
I'm implementing a visual with similar behaviour to the clustered column chart core visual and have some very similar data bindings for colour in the properties pane. This should ideally bind as per the clustered column chart, i.e.:
I can actually get the above to list in the pane for each situation, but my challenge is pushing the selectionId into the data view for scenarios 1 and 2 when I select a colour from the palette and persisting the selected value.
The only one that works reliably is 3, which is as per the example. In this case, the generated selectionId is getting pushed into categorical.categories[n].objects as expected.
My dataViewMapping is configured as follows:
"categorical": {
"categories": {
"for": {
"in": "category"
}
},
"values": {
"group": {
"by": "series",
"select": [
{
"bind": {
"to" :"measure"
}
}
]
}
}
}In the case of where I need to generate a selectionId .withSeries() and/or .withMeasure(), I can get a valid selectionId for the combination of fields.
However, using it with objectEnumeration.push does not put it into the dataView, which I assume should push it into categorical.values[n].objects at the appropriate location. This doesn't seem to happen... or end up anywhere in the dataView that I can find.
Can someone shed any light on how I should be approaching/managing this? It's clearly possible to do but maybe I'm thinking about it the wrong way.
Thanks very much!
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |