Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone, I have a problem in my filter function that is stopping the process, it's simply the targetpages.getvisuals() that is not recognized as a function, i searched everywhere on the net .getvisuals() is what is used from the javascript API of power BI. Anyone can help me please solve this problem? Here's the code below :
Hi @TheMoM ,
You can try checking that before calling getvisuals(), you need to define a variable to receive a specific page before calling its subfunction.
You may refer to the code as below and I hope it could help you to resolve your issue.
report.getPages()
.then(function (pages) {
// Retrieve first page.
var firstPage = pages[0];
firstPage.getVisuals()
.then(function (visuals) {
console.log(visuals);
})
})
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes that's what I did with :
Am I misunderstanding something?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |