Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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)
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |