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

using Dynamic (multivalue) RLS with Paginated reports

Hello.

Can Power BI Paginated reports within the Power BI Service support dynamically generated datakeys for RLS?

For instance, I currently have multiple Power BI reports, in the Service, that are filtered using RLS by a dynamically generated datakey the app passes to the report. This datakey is based on UserId_CompanyId, therefore, depending on the user who's logged into the app and that user's specific company access, a specific datakey will be generated then passed to the report to filter via RLS.

(I've seen examples where UserId can be possible passed for RLS, but I need multivalue dynamic datakey support).

Thanks!

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

When applying row-level security to a Power BI paginated report, you need to assign a parameter to the UserID attribute. You may use  UserId as a filter or in a query to the datasource in Power BI Report Builder.

 

For further information, please refer Implementing row-level security in embedded paginated reports .

 

Best Regards

Allan

 

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

Anonymous
Not applicable

Hi Allan,

 

Yes. I understand you can assign a parameter to the UserID attribute. However, I need to use a dynamic key that changes based on the combo of user connected and their access to a company (i.e. for User#1 with access to Company ABC, datakey = 1_ABC). In this case, is it possible to pass the datakey 1_ABC to the UserID attribute? (passing in only the UserID (1) into the UserID attribute won't meet my requirement). 

 

The link you provided for further info shows a simple example: color = @userID (color = single value, not a combo datakey)

 

Thanks!

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 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.

Top Kudoed Authors