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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
AjithPrasath
Resolver II
Resolver II

Need help on multi tenancy

Hi ,

 

  Initially we created the reports and embedded in our application . Currently, what we have to do is multi tenancy. As of now, we have 50 customers and in future the numbers can grow. Each 50 customers will have seperate data with the same data structure. What we have to do is if the user from different company logged in the application - they have to see the data from their company alone. Each company will have seperate database and we can't combine into one. Please suggest the ways to implement . Thanks in advance.

3 REPLIES 3
Selva-Salimi
Super User
Super User

Hi @AjithPrasath,

 

Here’s a suggested approach:

1. Create a Combined Data Model. Instead of keeping each customer’s data in separate datasets, you can combine the datasets into a single model by adding a dimension table that includes a list of companies and their associated data. This table will act as a reference for filtering the data based on the logged-in user.

-Dimension Tables:
- Create a dimension table that lists all the companies.
- User Dimension: Create a dimension table that lists users and their associated companies. 

Establish relationships between your company dimension, user dimension, and your data tables. This will ensure that each dataset is properly linked to the respective company and user. and then define Roles for Row-Level Security. You can use functions like `USERNAME()` or `USERPRINCIPALNAME()` to identify the current user. (you might create a role with a DAX filter like: [CompanyID] = LOOKUPVALUE('UserDimension'[CompanyID], 'UserDimension'[Username], USERNAME()) ).
This filter will ensure that users only see data corresponding to their associated company.

 

If this post helps, then I would appreciate a thumbs up  and mark it as the solution to help the other members find it more quickly. 

v-rzhou-msft
Community Support
Community Support

Hi @AjithPrasath ,

 

According to your statement, I think your requirement is to hide specific tables or columns from report viewers. 

Here I suggest you to try OLS.

For reference:

  • Object-level security (OLS) OLS enables you to hide specific tables or columns from report viewers. You can also secure sensitive object names and metadata to prevent them from being discovered.

You can embed a report that uses object-level security .

 

Best Regards,
Rico Zhou

 

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

 

Hi @v-rzhou-msft ,

  I don't need to hide the tables or columns. What I need is to implement multi tenancy- based on the customer I need to show the data. How to dynamically change the dataset credentials in the report so that only the specified user will see the data. Thanks in advance.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.