Forum Discussion
Dynamic Row Level Security for the live connection with SSAS Tabular Model
- 6 years ago
In that case see if the below can help.
https://radacad.com/row-level-security-with-ssas-tabular-live-connection-in-power-bi
USERNAME() behaves differently on Desktop and Service. Always use USERPRINCIPALNAME() and always use email addresses, not domain accounts.
Thanks for the reply.
I have changed the table and DAX query as below using UPN.
And DAX :
=DimSalesTerritory[SalesTerritoryKey]=LOOKUPVALUE(DimUserSecurity[SalesTerritoryID], DimUserSecurity[UserName], USERPRINCIPALNAME(), DimUserSecurity[SalesTerritoryID], DimSalesTerritory[SalesTerritoryKey])
But the result is same, User could see blank report.
Do I should change the DAX query? any other settings to fix it?
Thanks,
Lakshmi
- lbendlin6 years agoSuper User
In power bi create a RLS role and for the DimUserSecurity table specif the rule
[Username]=USERPRINCIPALNAME()
- LDevi866 years agoFrequent Visitor
Hi Ibendlin,
I am unable to implement RLS in Power BI desktop, since this is live connection with SSAS Tabular Model.
Thanks,
Lakshmi
- lbendlin6 years agoSuper User
In that case see if the below can help.
https://radacad.com/row-level-security-with-ssas-tabular-live-connection-in-power-bi