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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Supritha1594
Regular Visitor

Show Slicer Values based on the logged in user in Power BI

Dear Community,

 

I have a slicer with the list of cost centers. I want to display cost centers of the logged in user in the cost center slicer. How can I do this in power BI. I have created a visualization which filters the data based on the slicers selection. I do not want to show all the cost centers to the logged in user. I want to show the cost ceters to which they belong to or have access to.


Kindly share the knowledge!

1 ACCEPTED SOLUTION
DallasBaba
Super User
Super User

@Supritha1594 you can use Row-Level Security (RLS).  Create a table showcasing user names and their corresponding accessible cost centers.

 

Navigate to the "Modeling" tab in Power BI Desktop and access "Manage Roles."

Initiate a new role by clicking on "Create."

Within the "Table Permissions" section, designate the table housing cost centers.

Move to the "Filter" section, opt for "Only show the rows where," and select the column with user names and cost centers. Save the role by clicking "OK."

 
Once you have created the role, you can publish the report to Power BI Service. This YouTube video should be helpful for you.

Let me know if this works for you. @ me in replies, or I'll lose your thread!!!  
Note:
If this post is helpful, please mark it as the solution to help others find it easily. Also, if my answers contribute to a solution, show your appreciation by giving it a thumbs up
 
 
Thanks
Dallas

View solution in original post

3 REPLIES 3
DallasBaba
Super User
Super User

@Supritha1594 I'm Happy to know it works.  Kindly @ me with any future needs around Power BI and Fabric.

 

Thanks
Dallas
DallasBaba
Super User
Super User

@Supritha1594 you can use Row-Level Security (RLS).  Create a table showcasing user names and their corresponding accessible cost centers.

 

Navigate to the "Modeling" tab in Power BI Desktop and access "Manage Roles."

Initiate a new role by clicking on "Create."

Within the "Table Permissions" section, designate the table housing cost centers.

Move to the "Filter" section, opt for "Only show the rows where," and select the column with user names and cost centers. Save the role by clicking "OK."

 
Once you have created the role, you can publish the report to Power BI Service. This YouTube video should be helpful for you.

Let me know if this works for you. @ me in replies, or I'll lose your thread!!!  
Note:
If this post is helpful, please mark it as the solution to help others find it easily. Also, if my answers contribute to a solution, show your appreciation by giving it a thumbs up
 
 
Thanks
Dallas

Thanks alot @DallasBaba for your response! It really worked well...I followed the youtube video and the steps that you have mentioned above.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Kudoed Authors