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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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