Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jeffiefgf
Frequent Visitor

Make changes to dataView/data fields with TypeScript instead of going into edit mode

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!

 

jeffiefgf_0-1651597099221.png

 

1 REPLY 1
dm-p
Super User
Super User

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.