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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

PowerBI Embedded - row-level security (RLS) vs customer filters

My scenario is:

Publish charts on web page where each customer can see only own data - there are over 1000 customers.

Use PowerBI Embedded and potentially SSAS cube

The questions are:

1)To filter data for each customer should I use:

a)Row level security - https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls

b)Custome filter javascript - https://community.powerbi.com/t5/Developer/how-to-create-custom-filters-for-power-bi-embedded-report...

From what I can see in RLS I should create separate rule for each customer and this seems to be not a good option

I'm wonder how things are with custom filter with java script - can I use it insted of RLS and is this secure enough?

 

2)Can I use SSAS cube with PowerBI Embedded?

 

Thank you

 

 

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee

@Anonymous wrote:

My scenario is:

Publish charts on web page where each customer can see only own data - there are over 1000 customers.

Use PowerBI Embedded and potentially SSAS cube

The questions are:

1)To filter data for each customer should I use:

a)Row level security - https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls

b)Custome filter javascript - https://community.powerbi.com/t5/Developer/how-to-create-custom-filters-for-power-bi-embedded-report...

From what I can see in RLS I should create separate rule for each customer and this seems to be not a good option

I'm wonder how things are with custom filter with java script - can I use it insted of RLS and is this secure enough?

 

2)Can I use SSAS cube with PowerBI Embedded?

 

Thank you 

 

1)To custom filter with javascript api, you could reference this demo. Filter can't be instead of RLS because it is not secure enough, anyone who knows how to hack the Javascript can bypass the filter. If is is not a good option to create too many separate rules for RLS, you may try to consider using function USERNAME.

 

2)Power BI Embedded only supports directquery to Azure SQL DB/Data warehouse. And AFAIK, for SSAS, only the live connection can connnect to an SSAS cube, see here. so I'm afraid you can't use a SSAS cube in Power BI Embedded.

 

By the way, the being deprecated Power BI Embedded will continue to work for a limited time, to avoid any extra migrating and re-developing work in future, it is recommended to start with the new replacement Embedding with non-Power BI users(Power BI Premium license needed).

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.