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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.