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
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
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.