Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi all ,
I have one scenario , there is a database it has 3 schemas , each schema has 40 tables with same structure . schemas are for different customers , I need to show RLS based on customer in power bi report .
Now the question is
1.How to connect multiple schemas
2.In future if schema added that should get power bi when it gets refreshed .
I know we can do parameterization for server and database , but the question is different schemas in database .
How to achieve it ? if any related tutorials , vidoes also fine or any approach is also fine
Thanks in advance
Regards
ShivaPrasad
Solved! Go to Solution.
Hi @ShivaPr ,
Thank you for engaging with the Microsoft Fabric Community. You're right that server or database parameterization doesn't address this issue Power BI doesn't allow for dynamic schema switching. Because RLS operates only at the row level, the standard solution is to combine tables from all schemas into one table or view, include a Customer or Schema column, and then apply RLS to that column. This setup also ensures that new schemas are automatically included during refresh if the ingestion process is dynamic.
Regards,
Yugandhar.
Hi @ShivaPr
We can create a view (or ETL layer) in the database that union tables from all schemas and adds a Customer column then connecting Power BI to the single view and applying RLS using that column or handling in the database layer using metadata table to rebuild the view whenever a new schema is added and Power BI will then pick the data on the refresh.
Hi @ShivaPr ,
We haven’t received a response from your end yet. Please let us know whether the issue has been resolved or if you’re still facing any difficulties. Feel free to reach out if you need further assistance.
Thank you.
Hi @ShivaPr ,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further.
Thank you.
Hi @ShivaPr
We can create a view (or ETL layer) in the database that union tables from all schemas and adds a Customer column then connecting Power BI to the single view and applying RLS using that column or handling in the database layer using metadata table to rebuild the view whenever a new schema is added and Power BI will then pick the data on the refresh.
Hi @ShivaPr ,
Thank you for engaging with the Microsoft Fabric Community. You're right that server or database parameterization doesn't address this issue Power BI doesn't allow for dynamic schema switching. Because RLS operates only at the row level, the standard solution is to combine tables from all schemas into one table or view, include a Customer or Schema column, and then apply RLS to that column. This setup also ensures that new schemas are automatically included during refresh if the ingestion process is dynamic.
Regards,
Yugandhar.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |