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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
In my custom visual, I would like to let users make changes to the data fields through clicking buttons within the visual instead of dragging the fields around while in edit mode. For instance, we can move a certain data field to the bottom in edit mode by selecting a data field => Move => To bottom, as shown in the screenshot below. Is there a way to do this with code so that I can make it an onclick event for a button?
Any help or suggestion would be greatly appreciated, thank you in advance!
Hi @jeffiefgf,
There are currently no APIs for manipulation of the data roles; you can only read from the dataViewMapping. This would need to be a feature request for the team to implement for you.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |