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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.