Forum Discussion
RLS in Manage aggregation giving error.
- 6 years ago
Hi Anonymous ,
Does your RLS meet the following condition?
"To work correctly for aggregations, RLS expressions should filter both the aggregation table and the detail table."
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years ago
Found the problem.
By misktake I've added report level filter from aggregated report after removing that filter RLS worrking fine.
All filter should come from dimesion tables or DQ fact(only if required).
"To work correctly for aggregations, RLS expressions should filter both the aggregation table and the detail table."
Thank you Both for the support .
Hi,
It's in DQ, how can provide data?
I can provide 2-3 excel, will that works.
Basically it's Manage aggregation model, you can refer below doc. also.
https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-aggregations
I've created a composite model:
1. Fact on Direct Query
2. Aggregated table on Import
3. Dimensions are on Dual mode.
I've one customer dimension where I've added role cust. name = " abvcfd", then I'm testing on desktop only
Hi Anonymous ,
does the user "DESKTOP-1234/ABC" have access rights to the database / tables?
- Anonymous6 years agoNot applicable
I don't think so i've define any roles in DW.
So, I need to defines roles in DW on fact tables or all tables or what level I have defines roles.
Even if I select "Customer name" roles only then also it's failing.
But even
- mwegener6 years agoMost Valuable Professional
Hi Anonymous ,
I think if you access the table with Direct Query and run this query as another user, the data will be queried with the appropriate user rights.
The user therefore needs corresponding access rights (role) in the SQL database (DW).
Unfortunately, I am not very familiar with this topic.
- mwegener6 years agoMost Valuable Professional
Hi Anonymous ,
can you post a screenshot of the role definition?
- v-lionel-msft6 years agoCommunity Support
Hi Anonymous ,
Does your RLS meet the following condition?
"To work correctly for aggregations, RLS expressions should filter both the aggregation table and the detail table."
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Found the problem.
By misktake I've added report level filter from aggregated report after removing that filter RLS worrking fine.
All filter should come from dimesion tables or DQ fact(only if required).
"To work correctly for aggregations, RLS expressions should filter both the aggregation table and the detail table."
Thank you Both for the support .