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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Format Panel

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.

 

Screenshot 2020-09-17 at 2.30.46 PM.png

1 ACCEPTED 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

 
 




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)




View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@dm-p 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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

 
 




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)




Anonymous
Not applicable

@dm-p It works!! Thank you!)

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors