Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

RLS in Manage aggregation giving error.

Hi, 

I've created manage aggregation model it's working fine and I tested on Dax studio, all quries are navigating to aggregated tables.

Bur after creating role for RLS on one table, all visuals are failing and giving below error.

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And When I see aggregated in data view tab, it's showing below error.

 

 

 

  • 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 Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Anonymous's avatar
    Anonymous
    6 years ago

    v-lionel-msft 

    mwegener 

     

    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 .

10 Replies

  • mwegener's avatar
    mwegener
    Most Valuable Professional

    Hi Anonymous ,

     

    can provide a sample file or more information?

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      mwegener 

      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

       

      • mwegener's avatar
        mwegener
        Most Valuable Professional

        Hi Anonymous ,

         

        does the user "DESKTOP-1234/ABC" have access rights to the database / tables?

         

  • v-lionel-msft's avatar
    v-lionel-msft
    Community Support

    Hi Anonymous ,

     

    Which method do you use to configure RLS?

    Does your account have access permission?

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.