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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.