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
Anonymous
Not applicable

Dynamic DAX Role filtering by report in tabular model?

Hi,

 

I'm wondering would it be possible to make role filter like this as we would need to have different visibility depending on report the user is viewing. I know it would be possible to achieve this by having two separate models or with alias table for filtering but we don't want to end up with a maintenance nightmare as we have a lot of security rules in our model.

 

So my question is, would it be possible to make a role filter based on report name/id or some hidden slicer page on the report? Like if the report name is report1 use filter1, if the report name is report2 use filter2.

 

Thank you.

 

- Aku

3 REPLIES 3
lbendlin
Super User
Super User

Roles are tied to datasets, not reports.

Anonymous
Not applicable

I'm aware that they are tied to datasets, but what I'm asking for is if it would be possible to identify the report in dataset level and filter the data based on that? I have done this on another reporting platform and it made me wonder would it be possible to do this in PowerBI as well.

Sounds like security by obscurity to me. I would stay away from this.

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.

Top Solution Authors