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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Marcin
Helper V
Helper V

Manage roles in Direct Query

Hi,

 

Is it possible to personalize view ( filter ) by username ( mail ) using Direct Query connection to SSAS Tabular ?

I want to create dashboard in my company where every employee can see its own content automatically . First I made it with import where Manage Role is possible, but its very problematic with data from SSAS Tabular.

 

Thanks!

3 REPLIES 3
Anonymous
Not applicable

Hi @Marcin,

 

Can you ensure you use the ssas tabular mode? Current power bi only support use "import mode" and "connect live mode" to connect the ssas database. Live mode not support row level security.

 

Reference link:

Row-Level Security with Direct Query

 

Regards,
Xiaoxin Sheng

Hi,

I am using connect live mode and I am aware that Row Level Security is not available in that mode.

But I just want to ask If there is any other posibility to prepare dashboard or report where filter per user name / mail will work.

Using import I need to write DAX Query to get data set form my SSAS base and tranfer all columns in to one tabel so that all filters would work. Using creator to Import I have to make realtionships again.

 

I am looking for any advice how to make it in easrier way.

 

thanks!

 

Marcin

Anonymous
Not applicable

Hi @Marcin,

 

>>I am looking for any advice how to make it in easrier way.

If you want to find a simple way to work through it, I'd like to suggest you refer to the link which I mentioned. it contain the tutorial about how to use SSDT create the RLS.

 

In Power BI, when connecting SSAS tabular data source in DIRECT QUERY mode, it will directly take the role security defined within Tabular model. We can't "Manage Roles" for Tabular source in Power BI Desktop. To edit roles and corresponding row filters, you have to do it in either SQL Server Data Tools (SSDT) or SQL Server Management Studio (SSMS). Please refer to tutorial below:

 

Tutorial: Dynamic row level security with Analysis services tabular model

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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