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
How to dynamically add new objects in properties pane like the following screenshot (seen in donut chart), inside the enumerateObjectInstances method.
Hi @SriThiru,
It's hard to provide a targeted answer without knowing your choice of data view mapping and view model, but the high-level approach to this is that:
How to do this will very much depend on how you are intending to structure your data within the visual, and whether it is possible to retain the correct context against the data view that is sent to the visual by Power BI.
The easiest way to have a look and play with a working example would be to go through the sample bar chart visual and see what's being done to achieve the solution there. Specific points of interest in this codebase are:
Here's an additional post where the author has a correct setup and shows these three in context (but the problem was actually something else).
Hopefully this should help you get a little further. Good luck!
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Thanks @dm-p , for the detailed response, and the code reference, I'll try your suggestions.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |