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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

PowerBi - Rerender data when change visuals

Hello every one,
I create a custom visual and consult code from sampleBarChart in this link github.
https://github.com/microsoft/PowerBI-visuals-sampleBarChart/tree/condFormat/Tutorial
And I have a problem: when I switch to an existing visual, then switch back to my visual, the update function is not updated. Data is not rendered to the screen and there is no UI at all.

LortT_1-1732083667590.png

LortT_2-1732083690844.png

LortT_0-1732083654465.png

I want to know that how can i make my custom visual can auto update and render data when i reopen it after open another visual like table or matrix vusual, tks all

 

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Anonymous 

 

This is currently a known issue with the developer visual. The first update doesn't always run for some reason. You can force it by manually reloading, invoking a resize or changing a property to make it come up.

 

When you package your visual, this should work as expected, so I'd recommend you test this to ensure you are being affected in the same way as above (which will probably help you get on with developing your visual rather than worrying about something outside your control ๐Ÿ™‚ ).

 

Cheers,

 

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

2 REPLIES 2
dm-p
Super User
Super User

Hi @Anonymous 

 

This is currently a known issue with the developer visual. The first update doesn't always run for some reason. You can force it by manually reloading, invoking a resize or changing a property to make it come up.

 

When you package your visual, this should work as expected, so I'd recommend you test this to ensure you are being affected in the same way as above (which will probably help you get on with developing your visual rather than worrying about something outside your control ๐Ÿ™‚ ).

 

Cheers,

 

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

I checked and done it successfully, thank you @dm-p 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon โ€“ Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save โ‚ฌ200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors