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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
shivprasads
Frequent Visitor

data passing between 2 custom visuals on the same page

Hi All,

 

 

Need help with data passing between 2 custom visuals. I have 2 custom visual in a single page and i was to send some data to and fro between them on certain events.

Using plotly to plot the graph.

Basic idea is to set data in one visual and be able to read it from another one.

 

 we have 2 custom visuals similar to line charts, the requirement is to get the visual zoomed if another one is zoomed into. so both the visuals are in sync. 

 

Thanks in advance

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @shivprasads,

Current custom visual seems not contains functions to direct loading/extracting data from other visuals. The interactions of visuals are based on the underline table fields and row contents that visual used instead of direct send/receive data between visuals.

How visuals cross-filter each other in a Power BI report 

For your scenario, I think you can try to use update event and invoke the local storage API to saving data, then you can write coding in second visual events to loading data from the storage data.

Local Storage API 

Render events in Power BI visuals 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @shivprasads,

Current custom visual seems not contains functions to direct loading/extracting data from other visuals. The interactions of visuals are based on the underline table fields and row contents that visual used instead of direct send/receive data between visuals.

How visuals cross-filter each other in a Power BI report 

For your scenario, I think you can try to use update event and invoke the local storage API to saving data, then you can write coding in second visual events to loading data from the storage data.

Local Storage API 

Render events in Power BI visuals 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks for the inputs here, I can look into using the Local Storage API to store the information from the 1st custom visual, what would be the ideal way to read the same from the 2nd custom visual, the use case here would be to have multiple interactions, like zoom into 1 visual should sync the zoom level to the 2nd one and vice versa.

Hi @shivprasads,

Yes, I know you may want to use custom visuals to achieve fully sync-able visual like the default 'sync' slicer.
AFAIK, 'sync' slicer uses the same slicer which hosts on different pages to achieve sync filter on the same visual and the power bi team seems not to release the related functions to custom visual API lists. 

So current you may not fully achieve your requirements based on custom visual and correspond api. You can share your idea to suggest power bi team to open more functions and properties to design more powerful custom visuals.
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.