Forum Discussion

rebecka's avatar
rebecka
Frequent Visitor
8 years ago
Solved

RLS with Power BI Embedded and SSAS Multidimensional

Hi,   We're trying to do a POC with an web-app that will embed Power BI reports. When a user signs in, we want them to only be able to view the data that belongs to their organization. As a source ...
  • rebecka's avatar
    8 years ago

    Found the solution by myself at last...

    If someone else is intrerested:

     

    Setup a role in the Multidimensional database in SSAS. Choose 'Read definition' and 'Read' access on the cube of interest. Under dimension data chose the CUBE DIMENSION which you want to filter on. Pick the attribute of interest and under 'Advanced' and 'Allowed member set': type the following expression:

    STRTOMEMBER('[Organization].[Organization Id].&[{'+CUSTOMDATA()+'}]')

    and of course replace Organization and Organization Id with your dimension attributes.

     

    And chose Enable Visual Totals if you don't want each organization to know the total in the measures.