cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
tnutrmb New Member
New Member

Custom visual gets the update request even if it shouldn't?

Hi,

 

I have a data model which has for example three tables. Two of them is linked to each other and the third one is not linked to any table (basically orphan).

My custom visual and some other visual shows the data from those two linked tables. The selections between those two visuals works as expected.

But the report has one other visual which shows the data from that orphan table. When I do a selection from that visual powerbi will send the update request (type 2 data) to my custom visual even if the data is not linked. Why is that happening and how do I know that I don't need to update my visual with the data requested by the update?

 

Br, Tomi

1 ACCEPTED SOLUTION

Accepted Solutions
v-evelk Senior Member
Senior Member

Re: Custom visual gets the update request even if it shouldn't?

Hi,

 

Unfortunately I am not familiar with all the pitfalls of Power BI, but I suppose that, because of a custom visual works in an isolated sandbox, it isn't aware about where and what exact selection was applied so, there will just be called update with some passed data.

To solve your issue, I suppose, you could use a private field to store a visual state and just check it when update is called to prevent abundant rendering.

 

Kind Regards,

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

View solution in original post

1 REPLY 1
v-evelk Senior Member
Senior Member

Re: Custom visual gets the update request even if it shouldn't?

Hi,

 

Unfortunately I am not familiar with all the pitfalls of Power BI, but I suppose that, because of a custom visual works in an isolated sandbox, it isn't aware about where and what exact selection was applied so, there will just be called update with some passed data.

To solve your issue, I suppose, you could use a private field to store a visual state and just check it when update is called to prevent abundant rendering.

 

Kind Regards,

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

View solution in original post

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 391 members 3,144 guests
Please welcome our newest community members: