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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
lfrigione
Helper II
Helper II

Hide pages by code

 

I have already seen something in this blog but I would like to solve the problem in vanilla js without using external libraries.
In my web application there are different users, I would like to manage a single embedded report with more pages and show, by code, only the pages related to the logged user rather than creating a report for each user.
 
is it possible?
 
for example when I create my config object...
2 REPLIES 2
v-micsh-msft
Microsoft Employee
Microsoft Employee

Yes, it is possible.

You may take a look at the RLS in Power BI embeded:

Use Row-level security with Power BI embeded content

 

Further, you may also set the page level filter through the SetFilter function:

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters

 

Regards,

Michael

 

Excuse me I can not find the section to hide the pages, could you give a very simple example?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.