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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
JohnTheDoe
Frequent Visitor

Check if a datapoint is already selected inside Custom Visual

Within update() function of IVisual, is there a way to check if a datapoint(and its corresponding SelectionID) is already selected? 

 

I could use getSelectionIds() and then brute force search the entire array one by one to find a match, but I feel that it would be very slow, expecially with large amounts of data.

1 ACCEPTED SOLUTION
v-viig
Community Champion
Community Champion

To check if a data point is selected you should use getSelectionIds and compare SelectionIds by using equals or includes methods.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post

1 REPLY 1
v-viig
Community Champion
Community Champion

To check if a data point is selected you should use getSelectionIds and compare SelectionIds by using equals or includes methods.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.