cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WFotto
Frequent Visitor

Slicer selection based on DAX measure or userprincipalid

Hi Power BI Community,

 

I'm developing a report that uses Site Name as the primary slicer for multiple pages. I have set up permissions with userprincipalID(e-mail address with app.powerbi.com) to only show data for that user's single site. The report is based on a site table with Site ID and Site Name and linked to a table containing Site Name and userprincipleID using bidirectional row-level security. The Site slicer is currently set to a single selection radio button control. 

 

I'm trying to find a way to use a dax formula to select site slicer items based on userprincipleID.

 

Use cases:

1. Manager A who manages New York should not see Oregon.

2. Manager B who manages Oregon should not see New York.

3. Region Manager C who manages Maine and New York should not see Oregon (Sites are not grouped; single site selection is best; selection of Maine OR New York will be acceptable)

 

When I publish the slicer, it always has a single selected Site ID. I have the permissions working; Manager A can only see New York and Manager B can only see Oregon. But If I publish with New York selected, Manager B sees New York selected (with Oregon as an option) in the slicer and "(Blank)" in most of the visuals. Once Manager B switches to Oregon in the slicer, the visuals show data and New York disappears from the slicer.

 

1: Is there a way to force a slicer to automatically select only the Site Name that the userprincipalID has permissions to?
2: What about region managers who have access to multiple sites? Is there a way to use a First/Max/Min dax formula to only select a single site that they have access to? (Activating multiple sites is not ideal for regional managers, and especially not for analysts with access to all sites.)

 

Thanks,

2 REPLIES 2
venal Solution Sage
Solution Sage

Re: Slicer selection based on DAX measure or userprincipalid

@WFotto 

please refer the link.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more

If this post was helpful may I ask you to mark it as solution and give it some kudos?

WFotto
Frequent Visitor

Re: Slicer selection based on DAX measure or userprincipalid


@venal wrote:

@WFotto 

please refer the link.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more

If this post was helpful may I ask you to mark it as solution and give it some kudos?


Thank you, but data security through userprincipleID is working. In my example, if I publish the single selection slicer with New York as the default site, the Oregon manager sees New York in the slicer and blank data in the visuals. From what I've read, you can only publish a slicer with all selections or a single selection. I'm seeking a way to change a slicer based on permissions.

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Join THE global Microsoft Power Platform event series.

Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications