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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
ChayaL
New Member

Custom visual to get data from other visuals

I'm trying to write a custom visual which will export the data of all the other visuals in the report as well as the filter selection. I can't find a way to get information from the other visuals. Is there a way to do this?

 

I am currently doing something similar with an embedded report by calling

report = powerbi.get(embedContainer);

pages = await report.getPages();

and then looping through the pages and their visuals and calling

visuals[i].exportData();

 

I would like to be able to do this from a visual within the report so I don't need to embed the report.

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @ChayaL,

 

What you are looking to do will not be possible to solve with custom visuals. The approach you're using with embedding is the "correct" way to approach what you're doing.

 

For security reasons, custom visuals cannot communicate (or even know about) other visuals on the same page, or other report assets such as the data model. They are only permitted to access the data that Power BI gives them (i.e., what columns and measures the creator supplied to make the visual dataset, or any measures used for conditional formatting). 

 

Regards,

 

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

3 REPLIES 3
S19K15
Regular Visitor

I was looking exacly the same theese days, so I can create a ChatGPT visual to get data insights into the same report or page. I also tried the same code of PowerBI embeded during my trials inside custom visuals but it did't work. Based also on Daniel's awnser seems imposible though the custom visual to get out of visual scope and retrive data from page or report scope level.

dm-p
Super User
Super User

Hi @ChayaL,

 

What you are looking to do will not be possible to solve with custom visuals. The approach you're using with embedding is the "correct" way to approach what you're doing.

 

For security reasons, custom visuals cannot communicate (or even know about) other visuals on the same page, or other report assets such as the data model. They are only permitted to access the data that Power BI gives them (i.e., what columns and measures the creator supplied to make the visual dataset, or any measures used for conditional formatting). 

 

Regards,

 

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)




Thank you for the explanation!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors