Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
horizondave
Regular Visitor

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 Nobody linked to Customer 1 can see data for Customer 2.

 

However, I would like the customers to be able to compare their aggregates against "overall" aggregates obtained from all data from all customers.

Something like this:

Customer 1 sees:

    No. of widgets this month: 20

    Overall Average widgets this month: 16.8

    Performance this month: +3.2

 

Customer 2 sees:

   No of widgets this month: 15

   Overall Average widgets this month: 16.8

   Performance this month: -1.8

 

ie, all customers share the average number of widgets, but they only see their own widget totals

1 ACCEPTED SOLUTION

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] )
)

 

RLS with multi-tenant data and overall aggregates .jpg

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

View solution in original post

5 REPLIES 5
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @horizondave,

 

The solution could be that you can add the Overall as a calculated column. Or create a summarized table.  You can try it out. RLS with multi-tenant data and overall aggregates.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

 

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

The trouble is I potentially have *lots* of these attributes I want to add as averages....It's a very time consuming option to have to create each one individually.

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] )
)

 

RLS with multi-tenant data and overall aggregates .jpg

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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

Hi @horizondave,

 

Could you please mark a answer for this thread?

 

Best Regards,

Dale

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

I have accepted your answer as a potential solution, but my actual solution was to not use Power BI as it wasn't a good fit for my solution for other reasons.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors