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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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