Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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
Solved! Go to Solution.
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.
Render events in Power BI visuals
Regards,
Xiaoxin Sheng
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.
Render events in Power BI visuals
Regards,
Xiaoxin Sheng
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.