Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone!
Do we have the possibility to enable/disable the switcher (Column subtotals) in format panel programmatically? After that, it should make an API call to powerbi.dataView and rerender the table.
Solved! Go to Solution.
Hi @Anonymous,
You can use persistObjectProperties on the visual host to do it. You send a VisualObjectInstancesToPersist object containing the object/property(ies) you wish to update and the visual host will set them and trigger an update/re-query (as any property change will do this), which would satisfy your requirement of updating the dataView.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi @Anonymous,
You can use persistObjectProperties on the visual host to do it. You send a VisualObjectInstancesToPersist object containing the object/property(ies) you wish to update and the visual host will set them and trigger an update/re-query (as any property change will do this), which would satisfy your requirement of updating the dataView.
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 |
---|---|
5 | |
5 | |
3 | |
2 | |
2 |
User | Count |
---|---|
9 | |
7 | |
5 | |
4 | |
4 |