Forum Discussion

horizondave's avatar
horizondave
Regular Visitor
8 years ago
Solved

RLS with multi-tenant data and overall aggregates

Is this possible with Power BI? If I understand RLS correctly, all of my data has a tenant-id which I can use to filter by customer....So I can give customer 1 their data, customer 2 theirs but Nobo...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    8 years ago

    Hi horizondave,

     

    I'm afraid this is restricted by the way how RLS works. Maybe you can add many attributes in one calculated table like this:

    Table =
    ADDCOLUMNS (
        { "Summarized Values" },
        "Total Sales Quantity", SUM ( 'Sales'[Quantity] ),
        "Total Sales Amount", SUMX ( Sales, Sales[Net Price] * Sales[Quantity] ),
        "Number of kinds of Products", DISTINCTCOUNT ( 'Product'[Brand] )
    )

     

     

     

     

     

     

     

     

     

     

     

     

    Best Regards!

    Dale