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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Ramana
Regular Visitor

Dynamic row-level security

Hi everyone,

I have been trying to implement dynamic row-level security in my power bi report, i was trying with USERNAME() and lookupvalue() but both are not giving result for me.
My requrement is connecting to SQLServer and importing data, i have one fact table, one dimension table and security table.


Thanks alot for your quick reply....

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Ramana,

How did you create the roles and manage it? Did you test it usig different user who had different permission? I can not reproduce without your sample table. So please see: Power BI Desktop Dynamic security cheat sheet, which describe the detailed steps. After that, maybe it doesn't work, there are some tips to let it work and test it efficiently. Please review the article I posted, and follow it. If you still have not resolved your issue, please share your sample data for further analysis.

Thanks,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Ramana,

How did you create the roles and manage it? Did you test it usig different user who had different permission? I can not reproduce without your sample table. So please see: Power BI Desktop Dynamic security cheat sheet, which describe the detailed steps. After that, maybe it doesn't work, there are some tips to let it work and test it efficiently. Please review the article I posted, and follow it. If you still have not resolved your issue, please share your sample data for further analysis.

Thanks,
Angelia

Thank you @v-huizhn-msft

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.